📋 {{ report.frequency|title }} Report — {{ report.name }}

{{ start.strftime('%b %d, %Y') }} — {{ end.strftime('%b %d, %Y') }} {% if facility %} · {{ facility.name }}{% endif %}

{# ── Summary / Facility type ── #} {% if report.report_type in ('summary','facility') %} {# KPI row #}
{{ total_inspections }}
Inspections
{{ completed }}
Completed
{{ open_issues }}
Open Issues
{{ '%.1f'|format(avg_score) ~ '%' if avg_score else '—' }}
Avg Score
{% if facility_scores %}

Facility Scores

{% for row in facility_scores %} {% endfor %}
Facility Inspections Avg Score
{{ row.name }} {{ row.count }} {{ '%.1f'|format(row.avg) }}%
{% endif %} {% if critical_issues %}

⚠ Open Critical / High Issues

{% for i in critical_issues %} {% endfor %}
Issue Severity Facility / Area Reported
#{{ i.id }} — {{ i.description[:60] }}{% if i.description|length > 60 %}…{% endif %} {{ i.severity|title }} {{ i.area.facility.name }} / {{ i.area.name }} {{ i.reported_at.strftime('%b %d') }}
{% endif %} {% elif report.report_type == 'issues' %} {% if issues %}

Open Issues ({{ issues|length }})

{% for i in issues %} {% endfor %}
# Severity Facility / Area Description Status Reported
#{{ i.id }} {{ i.severity|title }} {{ i.area.facility.name }} / {{ i.area.name }} {{ i.description[:80] }}{% if i.description|length > 80 %}…{% endif %} {{ i.status|replace('_',' ')|title }} {{ i.reported_at.strftime('%b %d') }}
{% else %}

No open issues in this period.

{% endif %} {% endif %}

Janitorial QC System — scheduled report. Do not reply to this email.
View full reports dashboard