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

Bookings

New Booking @if(session('success'))
{{ session('success') }}
@endif @foreach($bookings as $booking) @endforeach
# Package Primary Passenger Mobile Booking Date Passengers & Seats Status
{{ $booking->id }} {{ $booking->package_id }} {{ $booking->name }} {{ $booking->mobile }} {{ $booking->booking_date }}
    @foreach($booking->passengers as $p)
  • Seat: {{ $p->busSeat->seat_number ?? $p->bus_seat_id }} – {{ $p->name }} ({{ $p->age }} yrs {{ $p->mobile ? ', ' . $p->mobile : '' }})
  • @endforeach
{{ ucfirst($booking->status) }}
{{ $bookings->links() }}
@endsection @section('content')

Bookings

New Booking @foreach($bookings as $booking) @endforeach
ID Status Passengers Created At Actions
{{ $booking->id }} {{ ucfirst($booking->status) }}
    @foreach($booking->passengers as $p)
  • {{ $p->name }} (Seat: {{ $p->busSeat->seat_number ?? '' }})
  • @endforeach
{{ $booking->created_at->format('d-m-Y H:i') }} Edit
@csrf @method('DELETE')
{{ $bookings->links() }} @endsection