{% extends 'base.html' %} {% block title %}Stale Pending Orders — Admin{% endblock %} {% block content %}
Admin Portal

Stale Pending Orders

← Back to portal

Orders still awaiting payment after a long time, likely abandoned. Only pending payment orders ever show up here — confirmed, in-progress, or delivered orders are never touched. Review each one and delete individually; nothing here is deleted automatically.

{% for order in orders %} {% empty %} {% endfor %}
Order Customer Placed Age Total Action
#{{ order.id }} {{ order.customer_name }}
{{ order.customer_email }}
{{ order.created_at|slice:":10" }} {{ order.age_days }} day{{ order.age_days|pluralize }} TSh {{ order.total_amount|floatformat:0 }}
{% csrf_token %}
No pending-payment orders older than {{ days }} day{{ days|pluralize }} — nothing to clean up.
{% endblock %}