{% extends "base.html" %} {# CUI // SP-CTI #} {% block title %}{{ app_name }} — Executive View{% endblock %} {% block content %} {% if state != 'ok' %}
{% if state == 'error' %}⚠️{% else %}📊{% endif %}
{% if state == 'error' %}Executive data unavailable{% else %}No ROI data yet{% endif %}
{{ message or 'No ROI events recorded yet' }}
{% if state != 'error' %}
Leadership metrics populate automatically as ICDEV™ automation logs ROI events. Nothing has been recorded for this environment yet.
{% endif %}
{% else %}
{{ hours_saved }}
Hours Saved by AI Automation
${{ "{:,.0f}".format(cost_avoided) }}
Cost Avoided
{{ total_tasks_automated }}
Tasks Automated
{{ agents_active }}/5
Agents Active
{% if maturity_available and maturity_score is not none %}{{ maturity_score }}/100{% else %}N/A{% endif %}
Maturity Score

AI Maturity Trend

{% if maturity_available and maturity_trend %}
{{ maturity_level }}
{% for p in maturity_trend %}
{{ p.month }}
{{ p.score }}
{% endfor %}
{% else %}
AI maturity scoring is not yet available for this environment.
{% endif %}

Agent Activity Digest

{% for a in agent_activity %} {% endfor %}
AgentTasksStatus
{{ a.agent }} {{ a.tasks_completed }} {% if a.status == 'active' %} Active {% else %} Idle {% endif %}

Cost Breakdown by Automation Type

{% for item in cost_breakdown %}
{{ item.category }} {{ item.hours }}h — {{ item.pct }}%
{% endfor %}

Recent Automation Events

{% for e in roi_events %} {% endfor %}
TypeDescriptionTime SavedTriggered By
{{ e.action_type|replace('_',' ')|title }} {{ e.description }} {{ e.time_saved_minutes }}m {{ e.triggered_by }}
{% endif %} {% endblock %} {% block styles %} {% endblock %}