@extends('admin.layouts.app') @section('title','Shipments') @section('breadcrumb','Shipments') @section('content')
SHIPMENT OPERATIONS

Shipments

Manage every courier shipment, destination and delivery status.

+ Create Shipment
▣
{{ number_format(\App\Models\Shipment::count()) }}Total shipments
◷
{{ number_format(\App\Models\Shipment::whereIn('status',['Ordered','Sorting'])->count()) }}Awaiting dispatch
✓
{{ number_format(\App\Models\Shipment::where('status','Delivered')->count()) }}Delivered
×
{{ number_format(\App\Models\Shipment::where('status','Cancelled')->count()) }}Cancelled
@if(request()->filled('q')||request()->filled('status'))Clear@endif
{{ number_format($shipments->total()) }} records
@forelse($shipments as $s)@php($st=strtolower($s->status ?? 'ordered'))@empty@endforelse
Tracking IDCustomerServiceDestinationStatusCreatedDetails
{{ $s->tracking_id ?? 'PNC-'.$s->id }}{{ optional($s->user)->name ?? ($s->origin_name ?: 'Operations') }}{{ $s->service_type ?? 'Courier' }}
{{ trim(($s->destination_city ? $s->destination_city.', ' : '').($s->destination_country ?? '')) ?: ($s->destination_address ?? '—') }}
{{ $s->status ?? 'Ordered' }}{{ optional($s->created_at)->format('d M Y, H:i') }}View details →
No shipments match these filters.
{{ $shipments->links() }}
@endsection