@php $rt = $roomTypeModel ?? null; $translationsByLang = $rt?->translations->keyBy('language_id') ?? collect(); $rtAiGroup = 'room-type-'.($rt?->id ?? 'new'); $rtAiContext = array_filter([ 'Hotel' => $hotel->name, 'Tipologia' => old('name', $rt?->name), 'Nº de quartos' => old('room_count', $rt?->room_count), ], fn ($v) => $v !== null && $v !== ''); @endphp
Ainda não existem facilities de quarto configuradas. Criar em CONFIG > Facilities de Quarto.
@else @foreach ($allFacilities->groupBy(fn ($f) => $f->category ?: 'Outras') as $category => $items)