{{-- brafa Systems — Rooms. Mirror of the brafa list-card pattern. Livewire backing: App\Http\Livewire\RoomList. Bindings preserved: wire:model perPage/search/selectedProperty, wire:click sortBy/generateQr/ downloadQrCodes/downloadApiQrCodes/downloadAllQrCodes/downloadSelfCheckInQr, $rooms pagination, and the SweetAlert .download-qr-btn JS hooks. --}}
{{-- Toolbar --}}
{{-- QR toolbar — property select + bulk download actions --}}
{{-- Table --}}
@forelse ($rooms as $room) @php $slug = 'room-'.Str::slug($room->UnitName.'-'.$room->PropertyName); $guestFilename = $slug.'-guest-checkout.png'; $hkFilename = $slug.'-housekeeping.png'; $coFilename = $slug.'-api-checkout.png'; $cleanFilename = $slug.'-api-clean.png'; $initials = collect(explode(' ', trim((string) $room->PropertyName))) ->filter()->take(2)->map(fn ($p) => strtoupper(mb_substr($p, 0, 1)))->implode(''); @endphp @empty @endforelse
Logo Property Property ID Room ID Unit Room name URLs Guest QR Housekeeping QR API checkout QR API clean QR
{{ $room->PropertyName }}
{{ $room->PropertyID }} {{ $room->RoomID }} {{ $room->UnitName }} {{ $room->RoomName }}
Guest: {{ $room->url }} Housekeeping: {{ $room->housekeepingUrl }} API checkout: {{ $room->checkoutUrl }} API clean: {{ $room->cleanUrl }}
@if (Storage::disk('public')->exists('qrcodes/'.$guestFilename)) Guest QR @else @endif @if (Storage::disk('public')->exists('qrcodes/'.$hkFilename)) Housekeeping QR @else @endif @if (Storage::disk('public')->exists('qrcodes/'.$coFilename)) API checkout QR @else @endif @if (Storage::disk('public')->exists('qrcodes/'.$cleanFilename)) API clean QR @else @endif
No rooms found.
{{-- Footer --}}