{{ facility.name }}
{% if contract %}{{ contract.name }}{% endif %} {% if contract and facility.address %} · {% endif %} {{ facility.address or '' }}
{# ── Summary stat tiles (90 days) ── #}
{% if avg_90 is not none %}{{ '%.1f'|format(avg_90) }}%{% else %}—{% endif %}
Avg Score
90 days
{{ total_90 }}
Inspections
90 days
{{ open_total }}
Open
Issues
{{ resolved_90 }}
Resolved
90 days
{# ── Score trend ── #}
Score trend — 30 days vs prior 30
{% if trend_delta is not none %} {% if trend_delta > 0.5 %}
Improving (+{{ '%.1f'|format(trend_delta) }} pts, {{ '%.1f'|format(avg_prior) }}% → {{ '%.1f'|format(avg_cur) }}%)
{% elif trend_delta < -0.5 %}
Declining ({{ '%.1f'|format(trend_delta) }} pts, {{ '%.1f'|format(avg_prior) }}% → {{ '%.1f'|format(avg_cur) }}%)
{% else %}
Steady ({{ '%.1f'|format(avg_cur) }}%)
{% endif %} {% else %}
Not enough data yet
{% endif %}
{# ── Open issues by severity + SLA state ── #}
Open Issues
{% if open_total or pending_verification %}
{% for sev in severity_order %} {% if severity_counts[sev] %} {{ severity_counts[sev] }} {{ sev }} {% endif %} {% endfor %} {% if pending_verification %} {{ pending_verification }} pending verification {% endif %}
{% if sla_breached %}
{{ sla_breached }} issue{{ 's' if sla_breached != 1 }} past the response-time target
{% endif %} {% if sla_at_risk %}
{{ sla_at_risk }} issue{{ 's' if sla_at_risk != 1 }} approaching the response-time target
{% endif %} {% if not sla_breached and not sla_at_risk and open_total %}
All open issues are within response-time targets.
{% endif %} {% else %}
No open issues right now.
{% endif %}
{# ── Recent inspections ── #}
Recent Inspections
{% if recent %}
{% for ins in recent %} {% endfor %}
Date Checklist Score
{{ ins.inspection_date.strftime('%b %d, %Y') }} {{ ins.template.name if ins.template else '—' }} {% if ins.overall_score is not none %}{{ '%.1f'|format(ins.overall_score) }}%{% else %}—{% endif %}
{% else %}
No completed inspections yet.
{% endif %}
{% if can_view_full %} Open Full Facility View {% endif %}

{% if last_date %}Last inspected {{ last_date.strftime('%b %d, %Y') }} · {% endif %} Snapshot generated {{ generated_at.strftime('%b %d, %Y %I:%M %p') }} ET

Janitorial QC — facility quality snapshot