@extends('layouts.admin') @section('content')
Review, approve, or reject Dewan bookings. You can also verify payment status and view receipts.
Pending Approval
Awaiting Payment
Booked / Confirmed
Rejected
| 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') }} | @if($booking->start_time && $booking->end_time){{ \Carbon\Carbon::parse($booking->start_time)->format('h:i A') }} – {{ \Carbon\Carbon::parse($booking->end_time)->format('h:i A') }} | @elseFull Day (Kenduri) | @endif{{ 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')
@elseif($booking->status === 'need_payment')
@elseif($booking->status === 'booked')
Completed
@elseif($booking->status === 'rejected')
Rejected
@endif
|
| No Dewan bookings found. | ||||||||