@extends('layouts.app') @section('title', 'Bookings') @section('page-title', 'Booking Management') @section('content')

All Bookings

Manage shipments, track status, and view payments.

Bulk Update
Reset
@forelse($bookings as $booking)
{{ $booking->cntr_no }}
{{ $booking->booking_date->format('d M, Y') }}
@php $statusClasses = [ 'Pending' => 'bg-yellow-100 text-yellow-800', 'Loaded' => 'bg-blue-100 text-blue-800', 'In Transit' => 'bg-indigo-100 text-indigo-800', 'Arrived' => 'bg-purple-100 text-purple-800', 'Delivered' => 'bg-green-100 text-green-800', 'Damaged' => 'bg-red-100 text-red-800', ]; $class = $statusClasses[$booking->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ $booking->status }}
{{ $booking->customer->name }}
@if($booking->receiver_name)
{{ $booking->receiver_name }}
@endif
{{ Str::limit($booking->pickup_location, 30) }}
{{ Str::limit($booking->delivery_location, 30) }}
Total
{{ \App\Helpers\CurrencyHelper::format($booking->total_amount) }}
Paid
{{ \App\Helpers\CurrencyHelper::format($booking->advance_payment) }}
Due
{{ \App\Helpers\CurrencyHelper::format($booking->due_payment) }}
Tap to view actions
@empty

No bookings found

Try adjusting your search or filters.

@endforelse
@if($bookings->count() > 0)

Quick Actions

Click on any booking row above to show actions

{{ $bookings->total() }} Total Bookings
@foreach($bookings as $booking) @endforeach
@endif
{{ $bookings->links() }}
@if(session('print_booking_id')) @endif
@endsection