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

{{ $bookingStats['total'] }}

Total Revenue

Rp {{ number_format(\App\Models\Booking::sum('price'), 0, ',', '.') }}

Pending

{{ $bookingStats['pending'] }}

Confirmed

{{ $bookingStats['confirmed'] }}

Completed

{{ $bookingStats['completed'] }}

Cancelled

{{ $bookingStats['cancelled'] }}

All Bookings
@forelse($bookings as $booking) @empty @endforelse
Code User Route Class Passengers Price Status Date Actions
{{ $booking->booking_code }} {{ $booking->user->name }} {{ $booking->route_from }} → {{ $booking->route_to }} {{ ucfirst($booking->class) }} {{ $booking->passengers }} Rp {{ number_format($booking->price, 0, ',', '.') }} {{ ucfirst($booking->status) }} {{ $booking->created_at->format('d/m/Y H:i') }}
@csrf @method('DELETE')
No bookings found
@endsection