{% extends 'core/base.html' %} {% load static %} {% block title %}Daily Dashboard - SwiftPOS{% endblock %} {% block topbar_title %} Daily Sales {% endblock %} {% block content %}
{% if messages %} {% for message in messages %}
{% if message.tags == 'success' %} {% elif message.tags == 'error' or message.tags == 'danger' %} {% elif message.tags == 'warning' %} {% else %} {% endif %}
{{ message }}
{% endfor %} {% endif %}
Today's Sales Overview
Branch-based daily metrics.
{% if user_role == 'admin' or user_role == 'superadmin' or user_role == 'super_admin' %}
{% else %}
Branch: {{ request.user.branch.name|default:"Not assigned" }}
{% endif %}
Revenue (Today)
{{ currency_symbol }}{{ summary.total_revenue|floatformat:2 }}
{{ summary.total_transactions }} transaction{{ summary.total_transactions|pluralize }}
Net Profit
{{ currency_symbol }}{{ summary.total_profit|default:0|floatformat:2 }}
Based on cost price × quantity
Payment Mix
Cash {{ currency_symbol }}{{ summary.cash_revenue|floatformat:2 }}
Transfer {{ currency_symbol }}{{ summary.transfer_revenue|floatformat:2 }}
POS {{ currency_symbol }}{{ summary.pos_revenue|floatformat:2 }}
Mobile {{ currency_symbol }}{{ summary.mobile_money_revenue|floatformat:2 }}
Today's Credit
{{ currency_symbol }}{{ summary.credit_outstanding|default:0|floatformat:2 }}
Balance from today’s credit sales
Payment Method Breakdown
{{ currency_symbol }}{{ summary.cash_revenue|floatformat:2 }}
Cash ({{ summary.cash_transactions }})
{{ currency_symbol }}{{ summary.transfer_revenue|floatformat:2 }}
Transfer ({{ summary.transfer_transactions }})
{{ currency_symbol }}{{ summary.pos_revenue|floatformat:2 }}
POS ({{ summary.pos_transactions }})
{{ currency_symbol }}{{ summary.mobile_money_revenue|floatformat:2 }}
Mobile ({{ summary.mobile_money_transactions }})
Top Selling Items (Today)
{% if top_selling_items %} {% for item in top_selling_items %}
{{ item.product__name }}
{{ item.product__sku }}
{{ currency_symbol }}{{ item.total_revenue|floatformat:2 }}
{{ item.total_quantity }} sold
{% endfor %} {% else %}

No sales recorded for this branch today.

{% endif %}
Low Stock (Quick View)
Manage stock
{% if low_stock_products %} {% for product in low_stock_products %}
{{ product.name }}
{{ product.sku }}
{{ product.stock_quantity }}
{% endfor %} {% else %}

No low stock alerts.

{% endif %}
{% endblock %}