@extends('layouts.admin') @section('admin-content')
{{-- Header (mirrors the Reservations list header) --}}
Freight Loads
@if(session('success'))
{{ session('success') }}
@endif {{-- Status tabs (same look as the Reservations tabs) --}}
{{-- Loads table --}}
@php $equipIcons = [ 'Dry Van' => 'fa-truck', 'Flatbed' => 'fa-truck-pickup', 'Reefer' => 'fa-snowflake', 'Reefer (Refrigerated)' => 'fa-snowflake', 'Step Deck' => 'fa-layer-group', 'Box Truck' => 'fa-truck-moving', 'Tanker' => 'fa-gas-pump', 'Lowboy' => 'fa-trailer', 'Hotshot' => 'fa-bolt', 'Power Only' => 'fa-truck-front', 'Car Hauler' => 'fa-car', 'Other' => 'fa-ellipsis', ]; $statusColors = ['posted'=>'info','assigned'=>'primary','in_transit'=>'warning','delivered'=>'success','cancelled'=>'danger']; @endphp @forelse($loads as $load) @empty @endforelse
Ref Client Title Equipment Pickup Drop-off Pickup Date Distance Rate Status
{{ $load->reference_no }} {{ optional($load->client)->company_name ?: optional($load->client)->contact_name ?: '—' }} {{ $load->title }} @if($load->equipment_type) {{ $load->equipment_type }} @else — @endif {{ $load->pickup_location }} {{ $load->dropoff_location }} {{ $load->pickup_date ? $load->pickup_date->format('d M Y') : '—' }} {{ $load->distance_miles ? $load->distance_miles . ' mi' : '—' }} {{ $load->rate_offer ? '$' . number_format($load->rate_offer, 2) : '—' }} {{ $load->status_label }}
No loads found{{ request('status') ? ' for this status' : '' }}.

Loads are posted by freight clients at /freight-client.

@endsection