{% extends 'layouts/base.html' %} {% load i18n %} {% block title %}{% trans "PX Command Center" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% trans "PX Command Center" %}

{% trans "Real-time overview of your patient experience operations" %}

{% trans "Live" %}
{% trans "Refreshes in 60s" %}

{% trans "Last Updated" %}

{{ last_updated }}

{% if has_red_alerts %}

{% trans "⚠️ ATTENTION REQUIRED" %}

{% trans "Items requiring immediate action" %}

{% for alert in red_alerts %}
{{ alert.label }}
{{ alert.value }}
{% endfor %}
{% endif %}
{% if complaints_module.variance > 0 %}+{% endif %}{{ complaints_module.variance }}%

{% trans "Complaints" %}

{{ complaints_module.total_active }}

{{ complaints_module.by_severity.critical }} {% trans "critical" %}
{% if complaints_module.overdue > 0 %}
{{ complaints_module.overdue }} {% trans "overdue" %}
{% endif %}
{{ complaints_module.avg_resolution_hours }}h {% trans "avg resolution" %}
NPS: {{ survey_module.nps_score }}

{% trans "Survey Insights" %}

{{ survey_module.avg_satisfaction }}%

{{ survey_module.response_rate }}% {% trans "response" %}
{% if survey_module.negative_24h > 0 %}
{{ survey_module.negative_24h }} {% trans "negative (24h)" %}
{% endif %}
{{ survey_module.total_completed }} {% trans "completed" %}
{% if actions_module.escalated > 0 %} {{ actions_module.escalated }} {% trans "escalated" %} {% endif %}

{% trans "PX Actions" %}

{{ actions_module.open|add:actions_module.in_progress }}

{{ actions_module.open }} {% trans "open" %} {{ actions_module.in_progress }} {% trans "in progress" %}
{% if actions_module.overdue > 0 %}
{{ actions_module.overdue }} {% trans "overdue" %}
{% endif %}
{{ actions_module.closed_30d }} {% trans "closed (30d)" %}
{% if inquiries_module.new_24h > 0 %} {{ inquiries_module.new_24h }} {% trans "new" %} {% endif %}

{% trans "Inquiries" %}

{{ inquiries_module.total_active }}

{{ inquiries_module.open }} {% trans "open" %} {{ inquiries_module.in_progress }} {% trans "pending" %}
{{ inquiries_module.resolved_30d }} {% trans "resolved (30d)" %}
{% if observations_module.critical > 0 %} {{ observations_module.critical }} {% trans "critical" %} {% endif %}

{% trans "Observations" %}

{{ observations_module.total_active }}

{{ observations_module.new }} {% trans "new" %} {{ observations_module.in_progress }} {% trans "in progress" %}
{{ observations_module.resolved_30d }} {% trans "resolved (30d)" %}

{% trans "Complaints Trend" %}

{% trans "NPS Score Trend" %}

{{ survey_module.nps_score }}

{% trans "Current NPS Score" %}

{% trans "Active Complaints by Severity" %}

{% trans "View All" %} →

{% trans "PX Actions Pipeline" %}

{% trans "Open" %} {{ actions_module.open }}
{% trans "In Progress" %} {{ actions_module.in_progress }}
{% trans "Pending Approval" %} {{ actions_module.pending_approval }}
{% trans "Closed (30d)" %} {{ actions_module.closed_30d }}

{% trans "Latest High Severity Complaints" %}

{% trans "View All" %}

{% trans "Recent Inquiries" %}

{% trans "View All" %}
{% if latest_inquiries %} {% for inquiry in latest_inquiries %}

{{ inquiry.subject }}

{{ inquiry.patient.get_full_name }} {{ inquiry.created_at|timesince }} {% trans "ago" %}
{{ inquiry.get_status_display }}
{% endfor %} {% else %}

{% trans "No active inquiries" %}

{% endif %}

{% trans "Recent Observations" %}

{% trans "View All" %}
{% if latest_observations %} {% for observation in latest_observations %}

{{ observation.title }}

{% if observation.category %} {{ observation.category.name_en }} {% endif %} {{ observation.created_at|timesince }} {% trans "ago" %}
{{ observation.get_status_display }}
{% endfor %} {% else %}

{% trans "No active observations" %}

{% endif %}

{% trans "Top Physicians This Month" %}

{% trans "View Leaderboard" %}
{% for rating in top_physicians %} {% empty %} {% endfor %}
{% trans "Rank" %} {% trans "Physician" %} {% trans "Department" %} {% trans "Rating" %} {% trans "Surveys" %} {% trans "Sentiment" %}
{% if forloop.counter == 1 %}
{% elif forloop.counter == 2 %}
{% elif forloop.counter == 3 %}
{% else %} #{{ forloop.counter }} {% endif %}
{{ rating.staff }}
{% if rating.staff.department %}{{ rating.staff.department.name }}{% else %}-{% endif %}
{{ rating.average_rating|floatformat:2 }}
{{ rating.total_surveys }}
{{ rating.positive_count }} {{ rating.negative_count }}
{% trans "No physician ratings this month" %}
{% endblock %} {% block extra_js %} {% endblock %}