@extends('layouts.app') @section('title', 'Room Status Board') @section('breadcrumbs') @endsection @section('content')

Room Status Board

Visual overview of all room statuses

Legend

Available
Occupied
Maintenance
Reserved
Cleaning
@if(isset($floors)) @foreach($floors as $floor) @endforeach @endif
@if(isset($roomsByFloor)) @foreach($roomsByFloor as $floor => $rooms)

{{ $rooms->first()->floor->name ?? 'Floor ' . $floor }}

@foreach($rooms as $room)

{{ $room->room_number }}

{{ $room->roomType->name ?? 'N/A' }}

{{ ucfirst($room->status) }}
@if($room->status === 'occupied')

{{ $room->currentReservation?->guest_name ?? 'Guest' }}

Check-out: {{ $room->currentReservation?->check_out_date->format('M d') ?? 'N/A' }}

@endif

${{ number_format($room->rate_per_night, 2) }}/night

@endforeach
@endforeach @else

No rooms found

@endif
@endsection