Shipment Details
@php
$badgeClass = match ($shipment->status) {
'active' => 'active',
'canceled' => 'canceled',
'pending' => 'pending',
'loading delayed', 'unloading delayed' => 'loading',
'ready to load', 'ready to unload' => 'ready',
default => '',
};
@endphp
{{ ucwords($shipment->status) }}
Shipment ID
#{{ $shipment->admin_shipment_id }}
Admin Name
{{ optional($shipment->admin)->name ?? '—' }}
{{ optional($shipment->admin)->email }}
Vehicle
@if ($shipment->vehicle)
{{ $shipment->vehicle->license_plate }}
Type: {{ $shipment->vehicle->type ?? '-' }}
@else
—
@endif
Destination
{{ $shipment->destination }}
Start Date
{{ \Carbon\Carbon::parse($shipment->start_date)->format('Y-m-d') }}
Info
{{ $shipment->basic_info ?? '-' }}
Created At
{{ $shipment->created_at ? $shipment->created_at->format('Y-m-d H:i') : '—' }}
Updated At
{{ $shipment->updated_at ? $shipment->updated_at->format('Y-m-d H:i') : '—' }}
{{-- Add more fields here as needed --}}