{% for label, val, sub, color, badge, bc in [
("Sessions today", metrics.sessions_today|string, "+14 vs avg", "text-teal-600", "LIVE", "bg-teal-50
text-teal-700"),
("Escalation rate", "6.3%", "+1.2% this week", "text-red-600", "HIGH", "bg-red-50 text-red-600"),
("Revenue at risk", "$"+metrics.revenue_at_risk|string, metrics.no_show_risk|string+" no-shows",
"text-yellow-600","WATCH","bg-yellow-50 text-yellow-700"),
("Effort score", "4.1", "out of 5.0", "text-blue-600", "PES", "bg-blue-50 text-blue-600"),
] %}
{% endfor %}
{{ label }}
{{ badge
}}
{{ val }}
{{ sub }}
Complaint trends — last 7 days
Daily complaints & sentiment · today updates live
Complaints
Sentiment%
Patient journey funnel
Conversation → resolution
{% set fc = ["bg-teal-400","bg-blue-400","bg-yellow-400","bg-red-400","bg-red-600"] %} {% for stage in funnel %}
{{ stage.stage }}
{{ stage.count }}
Live alerts
LIVE
{% for f in ["all","high","medium","low"] %}
{% endfor %}
Facilities status
Managed by {{ facilities_manager.name }} · {{ facilities_manager.email }}
{% for f in facilities %}
{% endfor %}
{{ f.icon }}
{{ f.label }}
{{ f.score }}
{{ f.last_checked }}