@foreach([
'homepage' => 'Homepage',
'about' => 'About',
'contact' => 'Contact',
'gallery' => 'Gallery',
'rooms' => 'Room Photos',
'booking' => 'Booking Settings',
'seo' => 'SEO',
] as $key => $label)
@endforeach
{{-- ── HOMEPAGE ─────────────────────────────────── --}}
{{-- ── ABOUT ─────────────────────────────────── --}}
{{-- ── CONTACT ─────────────────────────────────── --}}
{{-- ── GALLERY ─────────────────────────────────── --}}
{{-- Upload form --}}
{{-- Gallery grid --}}
@if($galleryPhotos->count())
@foreach($galleryPhotos as $photo)
 }})
@if($photo->caption)
{{ $photo->caption }}
@endif
@endforeach
@else
No gallery photos yet. Upload one above.
@endif
{{-- ── ROOM PHOTOS ─────────────────────────────── --}}
@foreach($roomTypes as $roomType)
@php
$typeRoomNos = \App\Models\Room::where('type', $roomType)->pluck('no')->all();
$typePhotos = collect($typeRoomNos)->flatMap(fn($no) => $roomPhotos->get($no, collect())->all());
$firstRoomNo = $typeRoomNos[0] ?? null;
@endphp
{{ $roomType }}
{{ $typePhotos->count() }} photo{{ $typePhotos->count() !== 1 ? 's' : '' }}
{{-- Upload for first room of this type --}}
@if($firstRoomNo)
@endif
{{-- Photos grid --}}
@if($typePhotos->count())
@foreach($typePhotos as $photo)
@endforeach
@else
No photos yet for this room type.
@endif
@endforeach
{{-- ── BOOKING SETTINGS ─────────────────────────── --}}
{{-- ── SEO ─────────────────────────────────── --}}