Order ID |
Created at |
Customer |
Total |
Payment Status |
Items |
Order Status |
Action |
{% for order in orders %}
#{{ order.order_number }} |
{{ order.order_date|date:"M d, Y" }} |
{{ order.customer.user.first_name|capfirst }} {{ order.customer.user.last_name|capfirst }}
|
₹{{ order.total_amount }} |
{% if order.status == 'paid' %}
Paid
{% else %}
Pending
{% endif %}
|
{{ order.items.count }} |
{% if order.status == 'progress' %}
{{ order.get_status_display }}
{% elif order.status == 'packaging' %}
{{ order.get_status_display }}
{% elif order.status == 'shipped' %}
{{ order.get_status_display }}
{% elif order.status == 'delivered' %}
{{ order.get_status_display }}
{% elif order.status == 'cancelled' %}
{{ order.get_status_display }}
{% else %}
{{ order.get_status_display }}
{% endif %}
|
|
{% empty %}
No orders found. |
{% endfor %}
{% block footer %}
{% endblock footer %}