{% extends 'base/layout.html' %} {% block content %}

Order #{{ order.id }}

Back to Profile

Date Placed

{{ order.created_at|date:"F j, Y, P" }}

Status

{{ order.get_status_display }}

Total Amount

${{ order.total_price }}

{% if order.insurance_purchased %}

Shipping Insurance Included

{% endif %}

Order Items

{% for item in order.items.all %}
{% if item.listing and item.listing.card.image_url %} {{ item.listing.card.name }} {% elif item.pack_listing and item.pack_listing.image_url %} {{ item.pack_listing.name }} {% else %}
{% endif %}
{% if item.listing %}

{{ item.listing.card.name }}

{{ item.listing.card.set.name }} • {{ item.listing.get_condition_display }} • {% if item.listing.is_foil %}Foil{% else %}Non-Foil{% endif %}

{% elif item.pack_listing %}

{{ item.pack_listing.name }}

Booster Pack

{% else %}

Unknown Item

{% endif %}

${{ item.price_at_purchase }}

Qty: {{ item.quantity }}

{% endfor %}
{% if order.seller %}

Rate Your Order

{% if order.rating %}

You rated this order:

{% for i in "12345" %} {% if forloop.counter <= order.rating %} {% else %} {% endif %} {% endfor %}

{{ order.rating }}/5

{% else %}

How would you rate your experience with {{ order.seller.store_name }}?

{% csrf_token %}
{% for i in "12345" %} {% endfor %}
{% endif %}
{% endif %}
{% endblock %}