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

Analytics & KPIs

Monitor key performance indicators and trends

Total Complaints

{{ kpis.total_complaints }}

Open: {{ kpis.open_complaints }}
Overdue Complaints

{{ kpis.overdue_complaints }}

Requires attention
Total Actions

{{ kpis.total_actions }}

Open: {{ kpis.open_actions }}
Avg Survey Score

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

Negative: {{ kpis.negative_surveys }}
Top Performing Departments
{% if department_rankings %}
{% for dept in department_rankings %}
{{ dept.name_en }}
{{ dept.survey_count }} surveys

{{ dept.avg_score|floatformat:1 }}

Avg Score
{% endfor %}
{% else %}

No data available

{% endif %}
Areas Needing Attention
{% if kpis.overdue_complaints > 0 %}
Overdue Complaints
Requires immediate action

{{ kpis.overdue_complaints }}

{% endif %} {% if kpis.overdue_actions > 0 %}
Overdue Actions
SLA breached

{{ kpis.overdue_actions }}

{% endif %} {% if kpis.negative_surveys > 0 %}
Negative Surveys
Low satisfaction scores

{{ kpis.negative_surveys }}

{% endif %} {% if kpis.overdue_complaints == 0 and kpis.overdue_actions == 0 and kpis.negative_surveys == 0 %}

All metrics on target!

{% endif %}
{% endblock %}