{% load staticfiles %} {% include "includes/base.html" %} {% include "includes/navbarheader.html" %} {% include "includes/navtop.html" %} {% include "includes/sidemenu.html" %}

Dashboard

{{comments}}
Total Comments!
{{customers}}
Total Customers!
{{orders}}
Total Orders!
{{sales}}
Total Sales!
Top Customers
{% for customer in top_customers %} {% endfor %}
Customer Name #Orders Total Sale
{{customer.customer.first_name}} {{customer.customer.last_name}} {{customer.orders}} {{customer.total_sale}}
Latest Orders
{% for order in latest_orders %} {% endfor %}
ID Location Customer Name Type Order Timestamp Total Amount Satus
{{order.id}} {{order.location}} {{order.customer.customer.first_name}} {{order.customer.customer.last_name}} Delivery {{order.order_timestamp}} {{order.total_amount}} {% if order.delivery_status == "Completed" %} Delivered {% elif order.delivery_status == "Processing" %} Processing {% else %} Pending {% endif %}
{% include "includes/scripts.html" %}