{{ __('My Room Bookings') }}

@if (session('success'))
{{ session('success') }}
@endif
@if ($search || request('date_range') || request('status')) Clear @endif
@forelse($bookings as $booking) @empty @endforelse
ID Title Room Date Time Recurrence Status Action
#{{ $booking->id }} {{ $booking->title }} {{ $booking->room->name }} {{ $booking->start_time->format('d-m-Y') }} {{ $booking->start_time->format('H:i') }} - {{ $booking->end_time->format('H:i') }}
@php $d = $booking->start_time->diff($booking->end_time); $parts = []; if ($d->h > 0) $parts[] = $d->h . ' hr'; if ($d->i > 0) $parts[] = $d->i . ' min'; echo implode(' ', $parts) ?: '0 min'; @endphp
@if ($booking->recurrence_type && $booking->recurrence_type !== 'none') {{ ucfirst($booking->recurrence_type) }} @else — @endif $booking->status === 'Initiated', 'bg-green-50 text-green-700 ring-1 ring-green-200' => $booking->status === 'Approved', 'bg-red-50 text-red-700 ring-1 ring-red-200' => $booking->status === 'Rejected', 'bg-gray-50 text-gray-700 ring-1 ring-gray-200' => $booking->status === 'Cancelled', ])> {{ $booking->status }}

No room bookings found.

Create your first room booking →
{{ $bookings->links() }}
@push('styles_chosen') @endpush @push('scripts') @endpush