{% extends "base.html" %} {% block title %}Dashboard{% endblock %} {% block page_title %}Dashboard{% endblock %} {% block content %}
{{ company.company_name[0] if company and company.company_name else 'C' }}

{{ company.company_name if company and company.company_name else 'Your Company' }}

{% if company %} {{ company.industry if company.industry else 'General' }} {{ company.country if company.country else 'Global' }} {% if company.business_type %} · {{ company.business_type }} {% endif %} {% endif %}
--:--:--
---
Live Sync
{% if payments %}
Bank {{ payments.bank_name or '—' }}
Account {{ payments.bank_account_number or '—' }}
IFSC {{ payments.bank_ifsc or '—' }}
UPI {{ payments.upi_id or '—' }}
WhatsApp {{ payments.whatsapp_business_link or '—' }}
Manage
{% else %}
Payment Methods Not Configured
Your banking and UPI details from registration are missing. Add them to display on invoices and dashboards.
Configure Now
{% endif %}

Health Score

{{ "%.0f"|format(summary.health_score) }} /100

{% if summary.health_score >= 80 %}Excellent Condition{% elif summary.health_score >= 50 %}Needs Attention{% else %}Critical Alert{% endif %}

Revenue (30d)

{{ currency_symbol }}{{ "{:,.0f}".format(summary.revenue_30d) }}

{{ "%.1f"|format(summary.margin) }}% margin

Profit (30d)

{{ currency_symbol }}{{ "{:,.0f}".format(summary.profit_30d) }}

{{ "%.1f"|format(summary.margin) }}% margin

Risk Score

{{ "%.0f"|format(risk_summary.overall_score) }}

{{ risk_summary.risk_level|title }} Risk

Customers

{{ summary.total_customers }}

{{ "%.1f"|format(summary.churn_rate) }}% churn

Employees

{{ summary.total_employees }}

{{ dept_performance|length }} departments
Revenue vs Expenses
Department Performance
Recent Simulations
{% if simulations %}
{% for sim in simulations %} {% endfor %}
{{ sim.name }}
{{ sim.sim_type|replace('_', ' ')|title }}
{{ sim.status|title }}
{% else %}

No simulations yet

{% endif %}
Recent Forecasts
{% if forecasts %}
{% for fc in forecasts %} {% endfor %}
{{ fc.name }}
{{ fc.forecast_type|replace('_', ' ')|title }} | {{ fc.method }}
{{ fc.status|title }}
{% else %}

No forecasts yet

{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}