{% extends 'adminapp/basic.html' %} {% block body %}

Dashboard

Welcome to Admin panel !

{{Nproducts}}

Total Products

{{torders}}

Today's Order

{{Nusers}}

Total Users

{{Norders}}

Total Orders

Recent Orders

{% for a in all %} {% endfor %}
Order ID Date Time Username Payment Gateway Items Status Action
XY00{{a.id}}GG {{a.ordered_date}} {{a.ordered_time}} {{a.username}} {{a.payment_getway}} {{a.item_length}} {% if a.status == "Pending" %} {{a.status}} {% elif a.status == "rejected" %} {{a.status}}
{% if a.admin_username %} by {{ a.admin_username }} {% endif %} {% elif a.status == "refunded" %} {{ a.status }}
{% if a.admin_username %} by {{ a.admin_username }} {% endif %} {% elif a.status == "cancel" %} {{ a.status }}
by user {% elif a.status == "delivered" %} {{a.status}}
{% if a.admin_username %} by {{ a.admin_username }} {% endif %} {% else %} Undefined {% endif %}
{% if a.id in insertcodes %} {% endif %}
{% endblock body %}