{% load static %} {% include 'includes/header.html' %} {% include 'includes/customer_sidebar.html' %} {% include 'includes/navbar.html' %}

Welcome Back, {{ request.session.name }}! 👋

Here's what's happening with your wholesale business today.

Loading...
Stock Inward
₹{{ purchase_data.total_purchase_amt|default:0|floatformat:2 }}
{{ purchase_data.total_purchase_qty|default:0 }} total items purchased
Total Outward
₹{{ sales_totals.total_amt|default:0|floatformat:2 }}
₹{{ sales_today|default:0|floatformat:2 }} sold today
Ready Stock
{{ stock_count|default:0 }} Units
Worth ₹{{ stock_value|default:0|floatformat:2 }}
Claim Rewards
₹{{ claims_totals.total_claims|default:0|floatformat:2 }}
₹{{ claims_totals.approved_claims|default:0|floatformat:2 }} approved so far
Sales Performance Trend
Collection Analytics
Total Collections 0%
Collected ₹{{ sales_totals.total_collected|default:0|floatformat:2 }}
Balance ₹0.00
Recent Sales Orders
View All
{% for sale in recent_sales %} {% empty %} {% endfor %}
Invoice Date Customer Amount Status
#{{ sale.inv_no }} {{ sale.inv_date|date:"M d, Y" }}
{{ sale.customer_name }} {{ sale.customer_phone|default:"" }}
₹{{ sale.total_amount|floatformat:2 }} {% if sale.sales_status == 'pending' %} Pending {% elif sale.sales_status == 'approved' %} Approved {% else %} {{ sale.sales_status|upper }} {% endif %}
No data

No recent sales records found.

Top Performing Brands
{% for item in brand_perf %}
{{ item.brand_name|slice:":1" }}
{{ item.brand_name }}
{{ item.qty }} Units Sold
₹{{ item.total|floatformat:0 }} Value Share
{% empty %}

No brand data available yet.

{% endfor %}
{{ sales_trend|json_script:"sales-trend-data" }} {% include 'includes/footer.html' %}