{% extends "dashboard/base.html" %} {% load humanize %} {% block page_title %}{{ sale.title }}{% endblock %} {% block header_actions %}
{% if sale.is_upcoming %} Edit Upcoming Sale {% endif %} View Public Page
{% endblock %} {% block dashboard_content %}
{{ sale.get_status_display }} {{ sale.start_at|date:"M d, H:i" }} - {{ sale.end_at|date:"M d, Y H:i" }} {{ sale.view_count }} view{{ sale.view_count|pluralize }} Payment Mode: {{ sale.get_pricing_model_display }}

Products in This Sale

{% if items %}
{% for item in items %}
{% if item.product.primary_image %} {% else %}
No img
{% endif %}

{{ item.product.name }}

{% if item.product.video %}Video Available{% endif %}
Sale Price GHS {{ item.price|floatformat:2 }}
{% if item.discount_percent %}
Discount -{{ item.discount_percent|floatformat:0 }}%
{% endif %}
Stock Remaining {{ item.stock_remaining }} / {{ item.stock_total }}
Sold Units {{ item.stock_total|add:"-"|add:item.stock_remaining|default:"0" }}
{% endfor %}
{% else %}

No items in this sale.

{% endif %}

Orders

{{ orders.count }} total
{% if orders %}
{% for order in orders %}
#{{ order.order_number }} {{ order.get_status_display }}
{{ order.buyer_name }}
{{ order.buyer_phone }} -- {{ order.buyer_email }}
{{ order.created_at|date:"M d, H:i" }} GHS {{ order.total_amount|floatformat:2 }}
{% endfor %}
{% else %}

No orders yet

{% endif %}
{% endblock %}