@if (session('status'))
{{ session('status') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

Rooms

{{ $rooms->total() }} total · physical inventory

@can('rooms.create') @include('layouts.partials.icon', ['name' => 'plus', 'class' => 'w-4 h-4']) New room @endcan
@if ($rooms->isEmpty())
No rooms match your filters.
@else @foreach ($rooms as $room) @endforeach
Room # Type Floor Status Active
{{ $room->room_number }} {{ $room->roomType?->name ?? '—' }} {{ $room->floor }} @php $colorClasses = match ($room->status_color) { 'green' => 'bg-green-100 text-green-700', 'blue' => 'bg-blue-100 text-blue-700', 'yellow' => 'bg-yellow-100 text-yellow-700', 'orange' => 'bg-orange-100 text-orange-700', 'red' => 'bg-red-100 text-red-700', default => 'bg-sand-200 text-ink-soft', }; @endphp @can('rooms.change-status') @else {{ $room->status_label }} @endcan $room->is_active, 'bg-ink-faint' => !$room->is_active, ])> {{ $room->is_active ? 'Active' : 'Inactive' }} @can('rooms.edit') @include('layouts.partials.icon', ['name' => 'edit', 'class' => 'w-4 h-4']) @endcan
{{ $rooms->links() }}
@endif