@extends('layouts.admin') @section('title', 'Manage Bookings') @section('content')

Bookings

@forelse($bookings as $booking) @empty @endforelse
Booking Ref Customer Package Status Date Actions
{{ $booking->booking_reference }}
{{ $booking->total_people }} Pax
{{ substr($booking->user->name, 0, 1) }}
{{ $booking->user->name }}
{{ $booking->user->email }}
{{ $booking->package->title }}
{{ $booking->formatted_total_amount }}
@php $statusClasses = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'confirmed' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-red-100 text-red-800', ]; $class = $statusClasses[$booking->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ ucfirst($booking->status) }}
{{ $booking->created_at->format('M d, Y') }}
{{ $booking->created_at->format('h:i A') }}

No bookings found.

@if($bookings->hasPages())
{{ $bookings->links() }}
@endif
@endsection