@php
$about = App\Models\AboutUs::first();
$mission = $about->additional_sections;
$gallery = App\Models\Gallery::first();
@endphp
{{ $gallery->title ?? 'GALLERY' }}
@if ($gallery && $gallery->images && count($gallery->images) > 0)
@php
$images = collect($gallery->images);
$totalImages = count($images);
$galleryCount = $home->gallery_count; // Fixed to 5 for the new layout
$displayImages = $images->take($galleryCount);
@endphp
@foreach ($displayImages as $index => $image)
@endforeach
@if ($totalImages > $galleryCount)
@endif
@endif