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

{% trans "Total Complaints" %}

{{ kpis.total_complaints }}

{% trans "Open:" %} {{ kpis.open_complaints }}

{% trans "Overdue Complaints" %}

{{ kpis.overdue_complaints }}

{% trans "Requires attention" %}

{% trans "Total Actions" %}

{{ kpis.total_actions }}

{% trans "Open:" %} {{ kpis.open_actions }}

{% trans "Avg Survey Score" %}

{{ kpis.avg_survey_score|floatformat:1 }}/5.0

{% trans "Negative:" %} {{ kpis.negative_surveys }}

{% trans "Top Performing Departments" %}
{% if department_rankings %}
{% for dept in department_rankings %}
{{ forloop.counter }}

{{ dept.name_en }}

{% trans "Surveys:" %} {{ dept.survey_count }}

{{ dept.avg_score|floatformat:1 }}

{% trans "Avg Score" %}

{% endfor %}
{% else %}

{% trans "No data available" %}

{% endif %}
{% trans "Areas Needing Attention" %}
{% if kpis.overdue_complaints > 0 or kpis.overdue_actions > 0 or kpis.negative_surveys > 0 %} {% if kpis.overdue_complaints > 0 %}

{% trans "Overdue Complaints" %}

{% trans "Requires immediate action" %}

{{ kpis.overdue_complaints }}

{% endif %} {% if kpis.overdue_actions > 0 %}

{% trans "Overdue Actions" %}

{% trans "SLA breached" %}

{{ kpis.overdue_actions }}

{% endif %} {% if kpis.negative_surveys > 0 %}

{% trans "Negative Surveys" %}

{% trans "Low satisfaction scores" %}

{{ kpis.negative_surveys }}

{% endif %} {% else %}

{% trans "All metrics on target!" %}

{% endif %}
{% endblock %}