{% extends "base.html" %} {% block title %}Analytics Overview{% endblock %} {% block page_title %}Business Analytics{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
30d Revenue
{{ currency_symbol }}{{ "{:,.0f}".format(summary.revenue_30d) }}
30d Profit
{{ currency_symbol }}{{ "{:,.0f}".format(summary.profit_30d) }}
Margin
{{ "%.1f"|format(summary.margin) }}%
Customers
{{ summary.total_customers }}
Revenue Trend
Department Budget
Department Performance
{% for d in dept_perf %} {% set util = d.utilization | float %} {% set util_class = 'green' if util < 50 else 'yellow' if util < 80 else 'red' %} {% endfor %}
Department Budget Spent Utilization Variance
{{ d.name }} {{ currency_symbol }}{{ "{:,.0f}".format(d.budget) }} {{ currency_symbol }}{{ "{:,.0f}".format(d.spent) }}
{{ "%.0f"|format(util) }}%
{{ currency_symbol }}{{ "{:,.0f}".format(d.variance) }}
{% endblock %} {% block extra_js %} {% endblock %}