{% extends 'base.html' %} {% load static %} {% block title %}Order #{{ order.id }} — PickkerMarket{% endblock %} {% block content %}

Order #{{ order.id }}

{{ t.order_delivery_on }} {{ order.delivery_date }} · {{ order.delivery_time_slot }} {% if picker_name %} · {{ t.order_picker_label }} {{ picker_name }}{% endif %}

{% if order.status == 'pending_payment' %}
{{ t.order_awaiting_payment }}

{{ t.order_total_due }} TSh {{ order.total_amount|floatformat:0 }}

{% if payment_methods %}

Send payment to one of the numbers below, then share your proof.

{% for m in payment_methods %}
{{ m.provider_label }} {{ m.lipa_number }} {% if m.account_name %}{{ m.account_name }}{% endif %} {% if m.instructions %}{{ m.instructions }}{% endif %}
{% endfor %}
{% else %}

Please make payment and send a screenshot via WhatsApp. Your picker will be notified as soon as our team confirms your payment.

{% endif %} Send Payment Proof via WhatsApp
{% elif order.status == 'cancelled' %}
Cancelled
{% else %}
{% for step in tracker_steps %}
{{ forloop.counter }}
{% if step.key == 'confirmed' %}{{ t.tracker_confirmed }}{% elif step.key == 'picking' %}{{ t.tracker_picking }}{% elif step.key == 'in_transit' %}{{ t.tracker_in_transit }}{% elif step.key == 'delivered' %}{{ t.tracker_delivered }}{% endif %}
{% endfor %}
{% if order.status == 'delivered' %}
{% if existing_rating %} You rated this delivery:

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

{% if existing_rating.comment %}

"{{ existing_rating.comment }}"

{% endif %} {% else %} {{ t.order_rate_picker }}
{% csrf_token %}
{% for i in "54321" %} {% endfor %}
{% endif %}
{% endif %} {% endif %}

{{ t.order_items }}

{% for item in items %} {% endfor %}
{{ item.product_name }} × {{ item.quantity }} TSh {{ item.line_total|floatformat:0 }}
{{ t.schedule_items_subtotal }} TSh {{ order.items_subtotal|floatformat:0 }}
{{ t.schedule_delivery_fee }} ({{ order.distance_km }} km) TSh {{ combined_fee|floatformat:0 }}
{{ t.schedule_total }} TSh {{ order.total_amount|floatformat:0 }}

{{ t.order_delivering_to }} {{ order.delivery_address }}

{% if picker_name %}

{{ t.order_messages_with }} {{ picker_name }}

{% for msg in messages_thread %}

{{ msg.message }}

{{ msg.created_at|slice:":10" }} {{ msg.created_at|slice:"11:16" }}
{% empty %}

No messages yet.

{% endfor %}
{% csrf_token %}
{% endif %}

← {{ t.order_back_to_orders }}

{% endblock %} {% block extra_scripts %} {% if picker_name %}{% endif %} {% endblock %}