@php $single = $single ?? false; $galleryImagesJson = json_encode( $gallery && $gallery->images->count() ? $gallery->images->map(fn($img) => [ 'src' => asset('storage/' . $img->original_path), 'title' => $img->caption ?? $img->title ?? '', 'subtitle' => $img->subtitle ?? '', ]) : [] ); $responsiveJson = json_encode( $single ? [ '0' => ['items' => 1], '568' => ['items' => 1], '1024' => ['items' => 1], '1200' => ['items' => 1], '1400' => ['items' => 1], '1600' => ['items' => 1], ] : [ '0' => ['items' => 1], '568' => ['items' => 2], '1024' => ['items' => 3], '1200' => ['items' => 3], '1400' => ['items' => 4], '1600' => ['items' => 4], ] ); @endphp @if($gallery) @else

No gallery found.

@endif