@php
$b = $barModel ?? null;
$translationsByLang = $b?->translations->keyBy('language_id') ?? collect();
$bAiGroup = 'bar-'.($b?->id ?? 'new');
$bAiContext = array_filter([
'Hotel' => $hotel->name,
'Bar' => old('name', $b?->name),
'Horário' => old('hours', $b?->hours),
], fn ($v) => $v !== null && $v !== '');
@endphp
Descrição por idioma
@foreach ($languages as $i => $l)
@php $t = $translationsByLang->get($l->id); @endphp
@endforeach
@if ($b?->exists)
@include('admin.partials.photo-gallery', [
'model' => $b,
'max' => \App\Models\Bar::MAX_PHOTOS,
'routeParams' => [$hotel, $b],
'routePrefix' => 'admin.hotels.bars.photos',
])
@endif