{{-- brafa Systems — housekeeping (public QR page). Livewire backing: App\Http\Livewire\RoomHousekeeping. Bindings preserved: Livewire.emit('markAsClean', bookingId, source) via confirmMarkAsClean(), the swal:toast listener, $roomDetails / $unitName / $noBooking / $departingBooking / $arrivingBooking / $noBookingMessage / $propertyDetails. --}} {{-- mount() returns early (propertyDetails stays []) on a malformed QR, and an unknown property leaves it null; neither may take the page down. --}} @php($propertyName = $propertyDetails->PropertyName ?? '')
{{ $propertyName }}
Housekeeping

Room information

@if ($roomDetails)

Review departing and arriving booking details below.

Room type{{ $roomDetails->RoomName }}
Room number{{ $unitName }}
@if (!$noBooking) @if ($departingBooking)
Departing guest
Name{{ $departingBooking['guest_name'] }}
Start{{ $departingBooking['start_date'] }}
Departure{{ $departingBooking['end_date'] }}
@endif @if ($arrivingBooking)
Arriving guest
Name{{ $arrivingBooking['guest_name'] }}
Start{{ $arrivingBooking['start_date'] }}
Departure{{ $arrivingBooking['end_date'] }}
@endif {{-- The room status rides on room.unitStatusText, which belongs to the unit rather than the booking, so the departing booking sets the same room clean when nobody arrives today. A guest arriving later is never written to. --}} {{-- Keep each directive on its own line with whitespace before the "@": Blade's matcher skips an "@if" glued to a word, and then pairs the NEXT "@endif" it finds with the wrong "@if". --}} @if ($cleanSource === 'departing') @if ($arrivingBooking)

No guest arriving today — the next guest arrives {{ $arrivingBooking['start_date'] }} and won't be affected.

@else

No guest arriving today.

@endif @endif @if ($cleanBookingId) @else

{{ $noBookingMessage }}

@endif @else

{{ $noBookingMessage }}

@endif @else

No room information found.

@endif
@push('js') @endpush