@extends('admin.layout') @section('title', 'Bookings') @section('page-title', 'Bookings Management') @section('content')

All Bookings ({{ $bookings->total() }})

@forelse($bookings as $booking) @empty @endforelse
Route Passenger Driver Seats Price Payment Status Booked On
{{ $booking->ride->route->fromCity->name ?? 'N/A' }} → {{ $booking->ride->route->toCity->name ?? 'N/A' }}
{{ $booking->ride->departure_datetime ? $booking->ride->departure_datetime->format('M d, Y') : 'N/A' }}
{{ substr($booking->passenger->name ?? 'P', 0, 1) }}
{{ $booking->passenger->name ?? 'N/A' }}
{{ $booking->passenger->phone ?? '' }}
{{ $booking->ride->driver->name ?? 'N/A' }} {{ $booking->number_of_seats }} Rs {{ number_format($booking->total_price * 280) }} @if($booking->payment_status == 'paid') Paid @elseif($booking->payment_status == 'pending') Pending @else {{ ucfirst($booking->payment_status) }} @endif @if($booking->booking_status == 'confirmed') Confirmed @elseif($booking->booking_status == 'completed') Completed @elseif($booking->booking_status == 'cancelled') Cancelled @else {{ ucfirst($booking->booking_status) }} @endif {{ $booking->created_at->format('M d, Y') }}
No bookings found
{{ $bookings->links() }}
@endsection