{% extends "base.html" %} {% block content %}

Dashboard

{% if stats %}
Customers

{{ stats.customers }}

Products

{{ stats.products }}

Suppliers

{{ stats.suppliers }}

Orders

{{ stats.orders }}

Total Revenue

R {{ "%.2f"|format(stats.revenue) }}

{% else %}

Could not load stats — check your database connection settings in app.py.

{% endif %}

Use the navigation bar above to manage each table: add, edit, delete, and search records.

{% endblock %}