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

لوحة استقبال وتجميع الطلبات

فحص لحظي
{% if new_orders %} {% for order in new_orders %}
طلب #{{ order.id }}
{{ order.created_at.strftime('%H:%M') if order.created_at else '' }}
العميل: {{ order.customer_name }}
الموبايل: {{ order.customer_phone }}
الفرع: فرع (كود {{ order.branch.id if order.branch else '' }}): {{ order.branch.name if order.branch else 'غير محدد' }}
وقت الاستلام: {{ order.scheduled_pickup_time or 'فوراً / في أسرع وقت' }}

تفاصيل الأصناف المطلوبة:
    {% for item in order.order_items %}
  • {{ item.item_name }} (×{{ item.quantity }}) {{ "%.2f"|format(item.price * item.quantity) }} EGP
  • {% endfor %}
{% if order.customer_comment %}
ملاحظة العميل: {{ order.customer_comment }}
{% endif %}
الإجمالي: {{ "%.2f"|format(order.total_price) }} EGP
صورة إيصال التحويل: {% if order.payment_proof %} عرض الإيصال {% else %} لا يوجد إيصال مرفق {% endif %}
قبول الطلب
{% endfor %} {% else %}
لا توجد طلبات جديدة حالياً تطابق الفلتر المختارة.
{% endif %}
{% if current_user.role == 'admin' or current_user.can_cancel_orders %} {% endif %} {% for order in previous_orders %} {% if current_user.role == 'admin' or current_user.can_cancel_orders %} {% endif %}
# اسم العميل الموبايل الفرع السعر الإجمالي كود الاستلام الحالة وقت الطلب التفاصيل والإيصال الإجراءاتتحكم الأدمن
{{ order.id }} {{ order.customer_name }} {{ order.customer_phone }} #{{ order.branch.id if order.branch else '' }} {{ order.branch.name if order.branch else '' }} {{ "%.2f"|format(order.total_price) }} EGP {{ order.pickup_code or '—' }} {% if order.status == 'Accepted' %} تم استلام الطلب {% elif order.status == 'Completed' %} تم التسليم {% elif order.status == 'Cancelled' %} ملغي {% elif order.status == 'Rejected' %} مرفوض {% else %} {{ order.status }} {% endif %} {{ order.created_at.strftime('%H:%M') if order.created_at else '—' }} {% if order.status == 'Accepted' %} تسليم {% else %} — {% endif %}
{% endblock %} {% block scripts %} {% endblock %}