@extends('layouts.app') @section('content')
No bookings yet. Go find a Dewan to book!
| Dewan | Facility | Date | Time | Amount (RM) | Status | Action |
|---|---|---|---|---|---|---|
| {{ $booking->dewan->name ?? '-' }} | {{ $booking->facility->name ?? '-' }} | {{ \Carbon\Carbon::parse($booking->date)->format('d M Y') }} | {{ $booking->time_start }} - {{ $booking->time_end }} | {{ number_format($booking->total_amount, 2) }} | @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'awaiting_verification' => 'bg-blue-100 text-blue-800', 'approved' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800', 'cancelled' => 'bg-gray-200 text-gray-600', ]; @endphp {{ ucfirst(str_replace('_', ' ', $booking->status)) }} | @php $buttonStyles = [ 'pay' => 'bg-yellow-100 text-yellow-800 hover:bg-yellow-200', 'cancel' => 'bg-red-100 text-red-800 hover:bg-red-200', 'print' => 'bg-gray-100 text-gray-700 hover:bg-gray-200', ]; @endphp @if($booking->status === 'pending') {{-- Make Payment --}} Make Payment {{-- Cancel Booking --}} @elseif($booking->status === 'awaiting_verification') @elseif($booking->status === 'approved') {{-- Print Receipt --}} Print Receipt @elseif($booking->status === 'cancelled') Cancelled @endif |