{% extends "base.html" %} {% block title %}Admin Dashboard - QuantumQuickSales{% endblock %} {% block page_title %}Admin Dashboard{% endblock %} {% block content %}
Total Products
{{ stats.total_products or 0 }}
Today's Sales
₹{{ "%.2f"|format(stats.today_sales or 0) }}
Today's Invoices
{{ stats.today_invoices or 0 }}
Total Users
{{ stats.total_users or 0 }}
Today's Cash Summary
Opening Cash

₹{{ "%.2f"|format(stats.cash_register[0] if stats.cash_register else 0) }}

Cash from Invoices

₹{{ "%.2f"|format(stats.today_cash or 0) }}

Withdrawals

₹{{ "%.2f"|format(stats.today_withdrawals or 0) }}

Closing Cash

₹{{ "%.2f"|format(stats.cash_register[3] if stats.cash_register else 0) }}

{% if stats.cash_register %} Register Created {% else %} No Register for Today {% endif %} Manage Cash Register Cash Withdrawal
Low Stock Alert
{% if stats.low_stock_products %}
{% for product in stats.low_stock_products %} {% endfor %}
Product Stock Action
{{ product[1] }} {{ product[3] }}
{% else %}

No low stock products

{% endif %}
System Overview
Products

Manage inventory

View All
Invoices

Sales records

View All
Stock

Inventory control

Manage
Users

User management

Manage
{% endblock %}