@php
$statusColors = [
'available' => ['bg' => '#d1fae5', 'color' => '#065f46', 'icon' => 'bi-check-circle'],
'occupied' => ['bg' => '#fdf1eb', 'color' => '#C4622D', 'icon' => 'bi-person-fill'],
'dirty' => ['bg' => '#fef3c7', 'color' => '#92400e', 'icon' => 'bi-exclamation-circle'],
'clean' => ['bg' => '#dbeafe', 'color' => '#1e40af', 'icon' => 'bi-stars'],
'maintenance' => ['bg' => '#f1f5f9', 'color' => '#475569', 'icon' => 'bi-tools'],
'out_of_order'=> ['bg' => '#fee2e2', 'color' => '#991b1b', 'icon' => 'bi-x-circle'],
];
$sc = $statusColors[$room->status] ?? $statusColors['available'];
@endphp
{{ $room->number }}
@if($room->name)
{{ $room->name }}
@endif
{{ ucfirst(str_replace('_', ' ', $room->status)) }}
Category
{{ $room->category?->name }}
Floor
{{ $room->floor ?? '—' }}
Max Occupancy
{{ $room->category?->max_occupancy ?? '—' }}
Active
{{ $room->is_active ? 'Yes' : 'No' }}
{{-- Quick status buttons --}}
@if($room->status !== 'occupied')
Update Status
@foreach(['available','dirty','clean','maintenance'] as $s)
@if($s !== $room->status)
@endif
@endforeach
@endif