@extends('layouts.app') @section('title', 'Road Freight') @section('breadcrumbs') @endsection @section('content')

Road Freight

Manage road freight shipments and vehicle tracking

New Shipment
@php $stats = [['label'=>'Total','count'=>$stats['total']??0,'icon'=>'bi-truck','color'=>'primary'],['label'=>'In Transit','count'=>$stats['in_transit']??0,'icon'=>'bi-arrow-right-circle','color'=>'info'],['label'=>'Delivered','count'=>$stats['delivered']??0,'icon'=>'bi-check-circle-fill','color'=>'success'],['label'=>'Pending Pickup','count'=>$stats['pending']??0,'icon'=>'bi-clock-history','color'=>'warning']]; @endphp @foreach($stats as $stat)
@endforeach
Shipments
@forelse($shipments ?? [] as $s) @empty @endforelse
Shipment #VehicleDriverPickupDeliveryETDETAStatusActions
{{ $s->shipment_number ?? 'N/A' }} {{ $s->vehicle->registration_number ?? 'N/A' }} {{ $s->driver->name ?? 'N/A' }} {{ $s->pickup_city ?? 'N/A' }} {{ $s->delivery_city ?? 'N/A' }} {{ optional($s->etd)->format('d M Y') ?? 'TBD' }} {{ optional($s->eta)->format('d M Y') ?? 'TBD' }}

No road shipments found

@endsection @push('scripts') @endpush