{% extends 'base.html' %} {% load indonesian_filters %} {% block title %}Sales Dashboard - Manufacturing App{% endblock %} {% block content %}

Sales Dashboard

Add Customer New Order
{{ customers|length }}
Active Customers

Total customers in system

View Customers
{{ pending_orders|length }}
Pending Orders

Awaiting processing or delivery

View Orders
{{ total_value|format_rupiah:0 }}
Total Sales Value

Recent order value (Rp)

View Sales
Recent Sales Orders
{% if recent_orders %}
{% for order in recent_orders %}
{{ order.so_number }}
{{ order.order_date|date:"M d" }}

{{ order.customer.name }} - {{ order.total_amount|format_rupiah }}

Status: {{ order.get_status_display }}
{% endfor %}
{% else %}

No recent orders

{% endif %}
Customer Performance
{% if top_customers %}
{% for customer in top_customers %}
{{ customer.name }} {{ customer.order_count }} orders
{% endfor %}
{% else %}

No customer data available

{% endif %}
{% endblock %}