{% extends "base.html" %} {% import 'components/macros.html' as ui %} {% block title %}Analytics Dashboard - Business Insights{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
{{ ui.button('Admin Dashboard', '/admin', 'secondary') }} {{ ui.button('Help Center', '/help-center', 'secondary') }}

Business Analytics

Track revenue, product performance, cashier contribution, and fund profitability with clean operational charts.

{{ currency_symbol }}{{ "%.2f"|format(total_income) }}
Total Income
{{ currency_symbol }}{{ "%.2f"|format(total_expenses) }}
Total Expenses
{{ currency_symbol }}{{ "%.2f"|format(net_income) }}
Net Income
{{ currency_symbol }}{{ "%.2f"|format(sales_income) }}
Sales Income
{{ currency_symbol }}{{ "%.2f"|format(payments_income) }}
Payments Income

Sales Trends (30 Days)

Revenue and transaction volume by day.

Top Products

Revenue compared with estimated profit.

Cashier Performance

Share of sales handled by each cashier.

Fund Profitability

Profit contribution by fund source.

Payment Methods

Collection totals and transaction count by method.

Top Products (30 Days)

{% for product in top_products %} {% endfor %}
Product Revenue Profit
{{ product.name[:40] }} {{ currency_symbol }}{{ "%.2f"|format(product.revenue) }} {{ currency_symbol }}{{ "%.2f"|format(product.total_profit) }}

Daily Sales

{% for sale in daily_sales %} {% endfor %}
Date Revenue Transactions
{{ sale.sale_date }} {{ currency_symbol }}{{ "%.2f"|format(sale.daily_revenue) }} {{ sale.transaction_count }}
{% if payment_methods %}

Payment Methods

{% for method in payment_methods %} {% endfor %}
Method Transactions Total
{{ method.method }} {{ method.transaction_count }} {{ currency_symbol }}{{ "%.2f"|format(method.total_amount) }}
{% endif %} {% if ai_analysis %}

🤖 AI Business Insights

{{ ai_analysis.summary }}

{% if ai_analysis.metrics %}

Growth: {{ "%.1f"|format(ai_analysis.metrics.growth_rate) }}% ({{ ai_analysis.metrics.trend }})

Profit Margin: {{ "%.1f"|format(ai_analysis.metrics.profit_margin) }}%

{% endif %}
{% endif %}

💡 Pro Tip: Use the branch selector above to compare performance across locations.

{% endblock %}