@extends('layouts.admin') @section('content')

Dewan Reservations Management

Review, approve, or reject Dewan bookings. You can also verify payment status and view receipts.

Pending Approval

{{ $bookings->where('status', 'pending')->count() }}

Awaiting Payment

{{ $bookings->where('status', 'need_payment')->count() }}

Booked / Confirmed

{{ $bookings->where('status', 'booked')->count() }}

Rejected

{{ $bookings->where('status', 'rejected')->count() }}

@forelse($bookings as $booking) @if($booking->start_time && $booking->end_time) @else @endif @empty @endforelse
Dewan Event Booked By Date Time Total (RM) Status Actions
{{ $booking->dewan->name ?? '—' }} {{ $booking->event_name }} {{ $booking->user->name ?? 'User Deleted' }} {{ \Carbon\Carbon::parse($booking->date)->format('d M Y') }} {{ \Carbon\Carbon::parse($booking->start_time)->format('h:i A') }} – {{ \Carbon\Carbon::parse($booking->end_time)->format('h:i A') }} Full Day (Kenduri){{ number_format($booking->total_amount, 2) }} @php $colors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'need_payment' => 'bg-blue-100 text-blue-800', 'booked' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800' ]; @endphp {{ ucfirst(str_replace('_', ' ', $booking->status)) }}
View @if($booking->status === 'pending')
@csrf
@csrf
@elseif($booking->status === 'need_payment')
@csrf
@elseif($booking->status === 'booked') Completed @elseif($booking->status === 'rejected') Rejected @endif
No Dewan bookings found.
@endsection