{% extends "base.html" %} {% block title %}SLA Compliance{% endblock %} {% block extra_css %} {% endblock %} {% block content %} {# ── Sub-nav ── #} {% include 'reports/_subnav.html' %}

SLA Compliance

{{ start.strftime('%b %d, %Y') }} — {{ end.strftime('%b %d, %Y') }}

Export Excel
{# ── Filters ── #}
Reset
{% if total == 0 %}
No resolved issues found for this period and filter.
{% else %} {# ── Overall KPI ── #}
Overall Compliance
{{ overall_pct|round(1) if overall_pct is not none else '—' }}{% if overall_pct is not none %}%{% endif %}
{{ met }}/{{ total }} resolved on time
{# ── Per-severity compliance cards ── #} {% for sev, color_cls in [('critical','danger'),('high','danger'),('medium','warning'),('low','secondary')] %} {% set d = by_severity[sev] %}
{{ sev|title }}
SLA: {{ d.sla_hours }}h window
{{ d.pct|round(1) if d.pct is not none else '—' }}{% if d.pct is not none %}%{% endif %}
{{ d.met }}/{{ d.total }}
{% if d.total > 0 %}
{% endif %}
{% endfor %}
{# ── Facility breakdown ── #} {% if by_facility %}
Compliance by Facility {{ by_facility|length }}
{% for row in by_facility %} {% set pct_val = row.pct or 0 %} {% set bar_class = 'bg-success' if pct_val >= 90 else 'bg-warning' if pct_val >= 70 else 'bg-danger' %} {% endfor %}
Facility Resolved Issues Met SLA Compliance % Progress
{{ row.name }} {{ row.total }} {{ row.met }} {% if row.pct is not none %} {{ row.pct }}% {% else %}—{% endif %}
{% endif %} {% endif %}{# end total == 0 #} {% endblock %}