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

Bookings

New Booking @forelse($bookings as $booking) @empty @endforelse
ID Status Booking Date Passengers Created At Actions
{{ $booking->id }} {{ ucfirst($booking->status) }} {{ \Carbon\Carbon::parse($booking->booking_date)->format('d-m-Y') }}
    @foreach($booking->passengers as $p)
  • {{ $p->passenger_name ?? '-' }} (Seat: {{ $p->busSeat->seat_number ?? '-' }})
    Age: {{ $p->passenger_age ?? '-' }}, Phone: {{ $p->passenger_phone ?? '-' }}, Email: {{ $p->passenger_email ?? '-' }}
  • @endforeach
{{ $booking->created_at->format('d-m-Y H:i') }} View
@csrf @method('DELETE')
No bookings found.
{{ $bookings->links() }}
@endsection