{% extends "base.html" %} {% block title %}الشحنات{% endblock %} {% block content %}

الشحنات العامة

{% if current_user.has_permission('add_shipment') %} إضافة شحنة جديدة {% endif %}
الشحنات العامة
{% for shipment in regular_shipments %} {% endfor %} {% if not regular_shipments %} {% endif %}
رقم التتبع حالة الشحنة اسم المرسل اسم المستلم طريق الشحن الوزن المحتويات التاريخ الإجراءات
{{ shipment.tracking_number }} {% set status_info = get_shipment_status_display(shipment.status) %} {{ status_info.name }}
{{ shipment.sender_name }}
{{ shipment.receiver_name }}
{% if shipment.shipping_method %} {% if shipment.shipping_method == 'جوي' %} جوي {% elif shipment.shipping_method == 'بري' %} بري {% else %} {{ shipment.shipping_method }} {% endif %} {% else %} - {% endif %} {% if shipment.weight and shipment.weight > 0 %} {{ "%.2f"|format(shipment.weight) }} كج {% else %} - {% endif %} {% if shipment.package_contents %} {{ shipment.package_contents }} {% else %} {{ shipment.package_type }} {% endif %}
{{ shipment.created_at.strftime('%Y-%m-%d') }}
{{ shipment.created_at.strftime('%H:%M') }}

لا توجد شحنات عامة

شحنات المستندات

{% if current_user.has_permission('add_shipment') %} إضافة شحنة جديدة {% endif %}
شحنات المستندات
{% for shipment in document_shipments %} {% endfor %} {% if not document_shipments %} {% endif %}
رقم التتبع حالة الشحنة اسم المرسل اسم المستلم نوع المستند الإجراء التاريخ الإجراءات
{{ shipment.tracking_number }} {% set status_info = get_shipment_status_display(shipment.status) %} {{ status_info.name }}
{{ shipment.sender_name }}
{{ shipment.receiver_name }}
{% if shipment.document_type %} {{ get_document_type_arabic(shipment.document_type) }} {% else %} مستندات {% endif %} {% if shipment.package_contents %} {{ shipment.package_contents }} {% else %} غير محدد {% endif %}
{{ shipment.created_at.strftime('%Y-%m-%d') }}
{{ shipment.created_at.strftime('%H:%M') }}

لا توجد شحنات مستندات

شحنات غير مكتملة الدفع

{% for shipment in unpaid_shipments %} {% else %} {% endfor %}
رقم التتبع اسم المرسل اسم المستلم تكلفة الشحنة المبلغ المتبقي تم الدفع الإجراءات
{{ shipment.tracking_number }}
{{ shipment.sender_name }}
{{ shipment.receiver_name }}
{{ "%.3f" | format(shipment.price) }} د.ك {{ "%.3f" | format(shipment.remaining_amount if shipment.remaining_amount is not none else 0.0) }} د.ك
{% if current_user.has_permission('Home') %} ✏️ {% endif %} 🖨️ {% if current_user.has_permission('Home') %} {% endif %}
جميع الشحنات مدفوعة بالكامل!

لا توجد شحنات بمبالغ مستحقة في الوقت الحالي.

{% endblock %}