{% extends "claims/base.html" %} {% block title %}Dashboard{% endblock %} {% block content %}

Finance dashboard

Total spend (INR){{ d.total_spend|floatformat:0 }}
Claims{{ d.claims }}
Line violation rate{{ d.violation_rate|floatformat:1 }}%
Avg cycle (submit to finance OK){{ d.avg_cycle_hours|floatformat:0 }} h
Approval steps past SLA{{ d.sla_breach_pct|floatformat:0 }}%
Overdue right now{{ d.overdue_open }}
Open audit flags{{ d.open_flags }}

Spend by category

{% include "claims/_bars.html" with bars=d.by_category %}

Spend by department

{% include "claims/_bars.html" with bars=d.by_department %}

Violation rate by category

{% include "claims/_bars.html" with bars=d.violation_by_category %}

Spend by month

{% include "claims/_bars.html" with bars=d.by_month %}

Claims by status

{% for k, v in d.status_counts.items %}{{ k }}: {{ v }} {% endfor %}

Average hours per approval stage

{% for k, v in d.stage_hours.items %}{{ k }}: {{ v|floatformat:1 }} h {% endfor %}
{% endblock %}