{% extends "layouts/base.html" %} {% load i18n static %} {% block title %}{% trans "My Performance" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Back to My Dashboard" %}

{% trans "My Performance" %}

{{ staff_member.name }} — {% if staff_member.department %}{{ staff_member.department.name }}{% endif %}

{% if performance %}
{{ performance.performance_score.overall|floatformat:0 }}

{% trans "Overall Performance Score" %}

{{ performance.performance_score.rating }}

{% trans "Total Complaints" %}

{{ performance.complaint_metrics.total|default:0 }}

{% trans "Resolved:" %} {{ performance.summary.complaint_resolution_rate|floatformat:0 }}%

{% trans "Response Time" %}

{{ performance.complaint_metrics.response_time.within_24h|default:0 }}/{% trans "24h" %}

{{ performance.complaint_metrics.response_time.within_48h|default:0 }} {% trans "within 48h" %}

{% trans "Resolution Rate" %}

{{ performance.summary.complaint_resolution_rate|floatformat:0 }}%

{% trans "Total Inquiries" %}

{{ performance.inquiry_metrics.total|default:0 }}

{% trans "Resolved:" %} {{ performance.summary.inquiry_resolution_rate|floatformat:0 }}%

{% trans "Score Breakdown" %}

{% for key, value in performance.performance_score.breakdown.items %}
{{ key|title }} {{ value|floatformat:0 }}/100
{% endfor %}
{% else %}

{% trans "No performance data available" %}

{% trans "Performance metrics will appear once you have assigned complaints or inquiries." %}

{% endif %} {% if benchmarks %}

{% trans "Department Comparison" %}

{% trans "How your performance compares to your department" %}

{% trans "Department Avg Score" %}

{{ benchmarks.average_score|floatformat:0 }}

{% trans "Staff in Dept" %}

{{ benchmarks.staff_count }}

{% trans "Your Rank" %}

{% for s in benchmarks.rankings %} {% if s.id == staff_member.user_id|stringformat:"s" %} #{{ forloop.counter }} {% endif %} {% endfor %}

{% if benchmarks.rankings %}
{% for s in benchmarks.rankings %} {% endfor %}
{% trans "Rank" %} {% trans "Staff" %} {% trans "Score" %} {% trans "Items" %}
#{{ forloop.counter }} {{ s.name }} {{ s.score|floatformat:0 }} {{ s.total_items }}
{% endif %}
{% endif %} {% endblock %} {% block extra_js %} {% endblock %}