{% extends "dashboard/base.html" %} {% load humanize %} {% block page_title %}Overview{% endblock %} {% block dashboard_content %}
{{ total_orders }}
Paid Orders
GHS {{ total_revenue|floatformat:2 }}
Total Revenue
{{ total_products }}
Products
{{ upcoming_sales }}
Upcoming Sales
{% if active_sale %}

Active Sale

Live

{{ active_sale.title }}

Ends {{ active_sale.end_at|date:"M d, Y H:i" }} -- {{ active_sale.view_count }} view{{ active_sale.view_count|pluralize }}

{% endif %}

Recent Orders

View All
{% if recent_orders %}
{% for order in recent_orders %}
#{{ order.order_number }} {{ order.get_status_display }}
{{ order.buyer_name }}
{{ order.created_at|date:"M d, H:i" }} GHS {{ order.total_amount|floatformat:2 }}
{% endfor %}
{% else %}

No orders yet

{% endif %}
{% endblock %}