{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Analytics Dashboard" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Comprehensive overview of patient experience metrics" %}
{{ kpis.total_complaints }}
{% trans "Total Complaints" %}
{{ kpis.sla_compliance }}%
{% trans "SLA Compliance" %}
{{ kpis.avg_resolution_hours }}h
{% trans "Avg Resolution" %}
{{ kpis.total_actions }}
{% trans "Total Actions" %}
{{ kpis.avg_survey_score }}
{% trans "Avg Survey Score" %}
{{ kpis.nps_score }}
{% trans "NPS Score" %}
{% trans "Status, sources, and severity breakdown" %}
{% trans "Action status and categories" %}
{% trans "Patient satisfaction and NPS trends" %}
{% trans "Performance metrics by department" %}
| {% trans "Department" %} | {% trans "Complaints" %} | {% trans "Actions" %} | {% trans "Survey Avg" %} | {% trans "Resolution Rate" %} | {% trans "Status" %} |
|---|---|---|---|---|---|
| {{ dept.name_ar }} | {{ 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" %} | |||||
{% trans "Predictive analytics and intelligent recommendations" %}
{% trans "Auto-generated analysis of the past 30 days" %}
{{ exec_summary.summary_en }}
{% if exec_summary.key_findings_en %}{{ exec_summary.summary_ar }}
{% if exec_summary.key_findings_ar %}{% trans "Departments showing risk signals across multiple channels" %}
| {% trans "Department" %} | {% trans "Risk Score" %} | {% trans "Risk Level" %} | {% trans "Active Signals" %} | {% trans "Complaint Δ" %} | {% trans "Survey Δ" %} | {% trans "SLA Δ" %} |
|---|---|---|---|---|---|---|
| {{ dept.department_name }} |
{{ dept.risk_score }}%
|
{{ dept.risk_level|title }} | {{ dept.active_signals }}/5 | {% if dept.complaint_volume_spike.change_pct > 0 %}+{% endif %}{{ dept.complaint_volume_spike.change_pct }}% | {{ dept.survey_score_decline.change_pct }}% | +{{ dept.sla_breach_increase.change_pp }}pp |
{% trans "30-day forecast with confidence bands" %}
{% trans "Predicted" %}
{{ complaint_forecast.total_predicted_30d }}
{% trans "vs Recent" %}
{% if complaint_forecast.change_pct > 0 %}+{% endif %}{{ complaint_forecast.change_pct }}%
{% trans "Complaints at risk of breaching SLA deadline" %}
| {% trans "Complaint" %} | {% trans "Breach Risk" %} | {% trans "Severity" %} | {% trans "Hours Left" %} | {% trans "Department" %} | {% trans "Risk Factors" %} | {% trans "Recommendation" %} |
|---|---|---|---|---|---|---|
| {{ pred.title }} |
{{ pred.breach_probability }}%
|
{{ pred.severity|title }} | {% if pred.hours_remaining < 0 %}{% trans "EXPIRED" %}{% else %}{{ pred.hours_remaining }}h{% endif %} | {{ pred.department|default:"—" }} |
|
{{ pred.recommendation }} |
{% trans "Systemic issues identified from complaint pattern analysis" %}
{{ rec.expected_impact_en }}
{% endif %}