{% extends "base.html" %} {# CUI // SP-CTI #} {% block title %}{{ app_name }} — AI ROI Tracker{% endblock %} {% block content %} {% if state != 'ok' %}
{% if state == 'error' %}⚠️{% else %}📊{% endif %}
{% if state == 'error' %}ROI data unavailable{% else %}No ROI data yet{% endif %}
{{ message or 'No ROI events recorded yet' }}
{% if state != 'error' %}
Automation events are recorded as ICDEV™ tools run (self-healing, compliance checks, security scans, and more). Metrics will populate here once events are logged.
{% endif %}
{% else %}
{{ hours_saved }}
Hours Saved
by AI automation to date
${{ "{:,.0f}".format(cost_avoided) }}
Cost Avoided
@ $150/hr blended rate
{{ total_events }}
Automation Events
logged to date

Monthly Hours Saved

{% set max_hours = monthly_trend | map(attribute='hours') | max %} {% for m in monthly_trend %}
{{ m.month }}
{{ m.hours }}
{% endfor %}

Hours Saved by Category

{% for b in breakdown %}
{{ b.action_type | replace('_', ' ') | title }}
{{ b.hours }}h
{% endfor %}

Recent Automation Events

Executive View →
{% for e in recent_events %} {% endfor %}
Action Type Description Time Saved Triggered By Occurred At
{{ e.action_type | replace('_', ' ') | title }} {{ e.description }} {{ e.time_saved_minutes }}m {{ e.triggered_by }} {{ (e.occurred_at or '')[:16] }}
{% endif %} {% endblock %} {% block styles %} {% endblock %}