{# Total Spend Card #}

Total Spend

{{ summary.total_spend }}

{{ "Last execution" if local_runtime_mode else date_range.display }}

Build Spend

{{ summary.build_spend }}

{{ "Last execution" if local_runtime_mode else date_range.display }}

Consumption Spend

{{ summary.consumption_spend }}

{{ "Last execution" if local_runtime_mode else date_range.display }}

Storage Monthly

{% if summary.storage_monthly_cost is not none %}

{{ summary.storage_monthly_cost }}

{% if summary.storage_latest_synced_at %} Latest snapshot {{ summary.storage_latest_synced_at.strftime('%Y-%m-%d %H:%M') }} UTC {% else %} Latest synced snapshot {% endif %}

{% else %}

No snapshot

Storage sync has not run yet.

{% endif %}
{# Opportunities Card #}

Opportunities

{{ "{:,}".format(summary.opportunity_count | default(0)) }}

active opportunities

{# Estimated Savings Card #}

Estimated Savings

{{ summary.estimated_savings_range }}

{% if running_solutions %}

Updating as solutions finish

{% elif summary.total_spend_raw > 0 and summary.estimated_savings_range_raw > 0 %}

{{ "%.0f" | format(summary.estimated_savings_range_raw | float / summary.total_spend_raw | float * 100) }}% of spend, {{ "last execution" if local_runtime_mode else date_range.display }}

{% else %}

{{ "Last execution" if local_runtime_mode else date_range.display }}

{% endif %}
{# Verified Savings Card #}

Verified Savings

{{ summary.verified_savings_range }}

{% if running_solutions %}

Updating as solutions finish

{% elif summary.total_spend_raw > 0 and summary.verified_savings_range_raw > 0 %}

{{ "%.0f" | format(summary.verified_savings_range_raw | float / summary.total_spend_raw | float * 100) }}% of spend, {{ "last execution" if local_runtime_mode else date_range.display }}

{% else %}

{{ "Last execution" if local_runtime_mode else date_range.display }}

{% endif %}
{# Clearing Savings Card #}

Clearing Savings

{% if summary.clearing_savings_raw and summary.clearing_savings_raw > 0 %}

{{ summary.clearing_savings }}

savings settling

{% else %}

$0.00

no clearing opportunities

{% endif %}