{{ __('تفاصيل شحنة:') }} {{ $parcel->tracking_number }}

← العودة إلى الدفعة
@if($parcel->batch->status === 'gathering') تعديل الشحنة @endif
@if (session('success')) @endif @if (session('error')) @endif @if($parcel->batch->status === 'arrived' && $parcel->current_status !== 'تم التسليم')

توثيق التسليم النهائي

لتغيير حالة الشحنة إلى "تم التسليم" بشكل نهائي.

@endif

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

الحالة الحالية: {{ $parcel->current_status }}

الشاحن
{{ $parcel->customer_name }} ({{ $parcel->customer_phone }})
المستلم
{{ $parcel->recipient_name ?? 'N/A' }} ({{ $parcel->recipient_phone ?? 'N/A' }})
تفاصيل المحتوى
{{ $parcel->weight_kg }} KG - نوع العود: {{ $parcel->oud_type }} {{ $parcel->oud_type === 'other' ? '('.$parcel->oud_type_other.')' : '' }}

الكراتين المرتبطة

@forelse($parcel->boxes as $box) @php $isShared = $box->parcels->count() > 1; @endphp
#{{ $box->sequence_number }} {{ $isShared ? 'مشترك' : 'كامل' }}
@if($isShared)
مشاركة مع:
    @foreach($box->parcels as $otherParcel) @if($otherParcel->id !== $parcel->id)
  • {{ $otherParcel->customer_name }}
  • @endif @endforeach
@endif
@empty

لا توجد كراتين مرتبطة بهذه الشحنة.

@endforelse

الوضع المالي

@if(!$parcel->is_fully_paid) @endif
المبلغ الإجمالي

{{ number_format($parcel->shipping_price_sar, 2) }} ريال

المبلغ المدفوع

{{ number_format($parcel->payments->sum('amount_sar'), 2) }} ريال

{{ $parcel->is_fully_paid ? 'مدفوع بالكامل' : 'المبلغ المتبقي' }}

{{ number_format($parcel->shipping_price_sar - $parcel->payments->sum('amount_sar'), 2) }} ريال

سجل التتبع

@if($parcel->batch->status === 'arrived' && $parcel->current_status !== 'تم التسليم') @endif
    @forelse ($parcel->trackingHistory->sortByDesc('timestamp') as $history)
  1. {{ $history->status }}

    {{ $history->location }}

    @if($history->notes)

    ملاحظات: {{ $history->notes }}

    @endif
  2. @empty
  3. لا يوجد سجل تتبع لهذه الشحنة بعد.

  4. @endforelse