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

{% trans "Analytics Dashboard" %}

{% trans "Comprehensive overview of patient experience metrics" %}

{{ kpis.open_complaints }} {% trans "open" %}

{{ kpis.total_complaints }}

{% trans "Total Complaints" %}

{{ kpis.sla_compliance }}%

{% trans "SLA Compliance" %}

{{ kpis.avg_resolution_hours }}h

{% trans "Avg Resolution" %}

{{ kpis.open_actions }} {% trans "open" %}

{{ kpis.total_actions }}

{% trans "Total Actions" %}

{{ kpis.avg_survey_score }}

{% trans "Avg Survey Score" %}

{{ kpis.nps_score }}

{% trans "NPS Score" %}

{% trans "Complaints Analytics" %}

{% trans "Status, sources, and severity breakdown" %}

{% trans "Status Distribution" %}

{% trans "Complaint Sources" %}

{% trans "Severity Levels" %}

{% trans "PX Actions Analytics" %}

{% trans "Action status and categories" %}

{% trans "Action Status" %}

{% trans "Action Categories" %}

{% trans "Survey Analytics" %}

{% trans "Patient satisfaction and NPS trends" %}

{% trans "Net Promoter Score" %}

{{ kpis.nps_score }}
{% trans "Industry Avg: +32" %}
{% widthratio kpis.nps_score|add:100 2 1 as nps_width %}

{% trans "Survey Score Trend" %}

{% trans "Department Performance" %}

{% trans "Performance metrics by department" %}

{% for dept in department_stats %} {% empty %} {% endfor %}
{% trans "Department" %} {% trans "Complaints" %} {% trans "Actions" %} {% trans "Survey Avg" %} {% trans "Resolution Rate" %} {% trans "Status" %}
{{ dept.name }} {{ dept.complaints }} {{ dept.actions }} {{ dept.survey_avg }}
{{ dept.resolution_rate }}%
{% if dept.resolution_rate >= 80 %} {% trans "Excellent" %} {% elif dept.resolution_rate >= 60 %} {% trans "Good" %} {% else %} {% trans "Needs Work" %} {% endif %}
{% trans "No department data available" %}
{% endblock %} {% block extra_js %} {% endblock %}