@forelse($rooms as $room) @empty @endforelse
Room No. Type Floor Rent (₹) Amenities Status Actions
{{ $room->room_number }} {{ $room->roomType->name }} {{ $room->floor_number ?? 'Ground' }} ₹{{ number_format($room->rent, 2) }}
@foreach($room->amenities as $amenity) {{ substr($amenity->name, 0, 3) }} @endforeach
@if($room->beds->count() > 1)
@foreach($room->beds as $bed)
{{ $bed->bed_number }} @if($bed->gender_restriction !== 'any') {{ $bed->gender_restriction }} only @endif
@if($bed->status === 'occupied' && $bed->activeRegistration)
{{ $bed->activeRegistration->full_name }}
@csrf
@elseif($bed->is_blocked_for_infection)
BLOCKED
@else {{ strtoupper($bed->status) }} @endif
@endforeach
@else @php $bed = $room->beds->first(); @endphp @if($bed && $bed->status === 'occupied' && $bed->activeRegistration)
Occupied {{ $bed->activeRegistration->full_name }}
@elseif($bed && $bed->is_blocked_for_infection)
ISO Blocked
@else
@csrf
@endif @endif
@if($room->activeRegistration && $room->beds->count() === 1)
@csrf
@endif @if($room->images->count() > 0) {{ $room->images->count() }} @endif
No rooms configured
@if(method_exists($rooms, 'links')) {{ $rooms->links() }} @else
Viewing all records ({{ count($rooms) }})
@endif