{{-- 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. QR filenames/URLs come from $room->qrs (App\Support\RoomQr) — the view no longer derives slugs or touches the filesystem. --}}
{{-- Toolbar --}}
{{-- QR toolbar — property select + bulk download actions --}}
{{-- Table --}}
@forelse ($rooms as $room) @php $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 @if($sortField === 'properties.PropertyName'){{ $sortDirection === 'asc' ? '↑' : '↓' }}@else↕@endif Property ID @if($sortField === 'rooms.PropertyID'){{ $sortDirection === 'asc' ? '↑' : '↓' }}@else↕@endif Room ID @if($sortField === 'rooms.RoomID'){{ $sortDirection === 'asc' ? '↑' : '↓' }}@else↕@endif Unit @if($sortField === 'rooms.UnitName'){{ $sortDirection === 'asc' ? '↑' : '↓' }}@else↕@endif Room name @if($sortField === 'rooms.RoomName'){{ $sortDirection === 'asc' ? '↑' : '↓' }}@else↕@endif QR codes
{{ $room->PropertyName }}
{{ $room->PropertyID }} {{ $room->RoomID }} {{ $room->UnitName }} {{ $room->RoomName }}
@foreach ($room->qrs as $qr)
@if ($qr['exists']) {{ $qr['label'] }} QR @else
@endif
{{ $qr['label'] }}
@if ($qr['exists']) @endif @if ($qr['link']) @endif
@endforeach
No rooms found.
{{-- Footer --}}