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

Ocean Freight Bookings

Manage ocean freight bookings and shipments

New Booking
@php $stats = [ ['label' => 'Total Bookings', 'count' => $stats['total'] ?? 0, 'icon' => 'bi-ship', 'color' => 'primary'], ['label' => 'In Transit', 'count' => $stats['in_transit'] ?? 0, 'icon' => 'bi-water', 'color' => 'info'], ['label' => 'Delivered', 'count' => $stats['delivered'] ?? 0, 'icon' => 'bi-check-circle-fill', 'color' => 'success'], ['label' => 'Pending', 'count' => $stats['pending'] ?? 0, 'icon' => 'bi-clock-history', 'color' => 'warning'], ['label' => 'Cancelled', 'count' => $stats['cancelled'] ?? 0, 'icon' => 'bi-x-circle', 'color' => 'danger'], ]; @endphp @foreach($stats as $stat)
@endforeach
@forelse($bookings->whereNotIn('status', ['completed', 'cancelled']) as $booking) @empty @endforelse
Booking # Vessel Voyage Port Load Port Discharge Container ETD ETA Status Actions
{{ $booking->booking_number }} {{ $booking->vessel_name ?? 'TBD' }} {{ $booking->voyage_number ?? 'TBD' }} {{ $booking->portOfLoading->name ?? 'N/A' }} {{ $booking->portOfDischarge->name ?? 'N/A' }} {{ $booking->container_quantity ?? 0 }}x {{ $booking->containerType->name ?? 'N/A' }} {{ optional($booking->etd)->format('d M Y') ?? 'TBD' }} {{ optional($booking->eta)->format('d M Y') ?? 'TBD' }}

No active bookings found

@forelse($bookings->where('status', 'completed') as $booking) @empty @endforelse
Booking # Vessel Route Container ETA Status Actions
{{ $booking->booking_number }} {{ $booking->vessel_name ?? 'N/A' }} {{ $booking->portOfLoading->code ?? '' }} → {{ $booking->portOfDischarge->code ?? '' }} {{ $booking->container_quantity ?? 0 }}x {{ $booking->containerType->name ?? '' }} {{ optional($booking->eta)->format('d M Y') ?? 'N/A' }}
No completed bookings
@forelse($bookings->where('status', 'cancelled') as $booking) @empty @endforelse
Booking # Vessel Route Cancelled On Reason Actions
{{ $booking->booking_number }} {{ $booking->vessel_name ?? 'N/A' }} {{ $booking->portOfLoading->code ?? '' }} → {{ $booking->portOfDischarge->code ?? '' }} {{ $booking->updated_at->format('d M Y') }} {{ $booking->remarks ?? 'N/A' }}
No cancelled bookings
@endsection @push('scripts') @endpush