Room {{ $room->room_number }} Details

Room Information

{{ $room->room_number }}

{{ $room->capacity }} persons

${{ number_format($room->price_per_night, 2) }}

$room->status === 'available', 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200' => $room->status === 'occupied', ])> {{ ucfirst($room->status) }}

Current Booking

@if ($room->bookings()->where('status', 'active')->first()) @php $booking = $room->bookings()->where('status', 'active')->first() @endphp

{{ $booking?->guest?->name || 'Guest' }}

{{ $booking->check_in_date->format('M d, Y') }}

{{ $booking->check_out_date->format('M d, Y') }}

@else

No active booking for this room.

@endif