{% extends 'supplier-panel/supplier-base.html' %} {%load static%} {%block section %}

Dashboard

Whole data about your business here

{% if messages %} {% for message in messages %}
{{message}}
{% endfor %} {% endif %}
{% comment %} Create report {% endcomment %}
Revenue
${{vendor.blance|floatformat:"2"}} {% comment %} Shipping fees are not included {% endcomment %}
Underway Orders
{{orders_underway.count}} {% comment %} Excluding orders in transit {% endcomment %}
Products
{{products_supplier.count}} {% comment %} In 19 Categories {% endcomment %}
Orders
{{orders_supplier.count}} {% comment %} Based in your local time. {% endcomment %}
Sale statistics
New Products
{% for product in products_supplier|slice:"0:3"%}
{{product.product_name|truncatechars:30}}

{{product.product_supercategory}}

View
{% endfor %}
Recent Underway Orders
    {% for order in orders_underway|slice:"0:5"%}
  • {{order.date_update}}
    Order ID: #{{order.id}}
  • {% endfor %}

Latest orders

{% comment %}
{% endcomment %}
{% for order in orders_supplier|slice:"0:10"%} {%endfor%}
Order ID Billing Email Date Weight Total Payment Status View Details
#{{order.id}} {{order.vendor.user.email}} {{order.date_update}} {{order.weight}} ${{order.amount}} {{order.status}} View details
{%if orders_supplier.count > 10 %} {%endif%}
{%endblock section%} {%block script%} {%endblock script%}