{% extends "main.html" %} {%load static%} {% block content %}

Orders

{% for order in orders %} {% endfor %}
Order ID Customer Cart Total Status Actions

{{order.order_id}}

{{order.customer.user.first_name}} {{order.customer.user.last_name}}

${{order.get_cart_total}}

{{order.orderstatus_set.all.last.status}}

{% if order.orderstatus_set.all.last.status == 'Pending' and not order.invoice %} {% endif %} {% if order.invoice %} {% endif %}
{% endblock %}