@if($album && $album->attachments->isNotEmpty())
@php $layout = $album->layout ?: 'grid'; @endphp
@foreach($album->attachments as $img)
@php $src = $img->imageUrl(); @endphp
@if($src)
@endif
@if($img->caption || $img->alt)
{{ $img->caption ?: $img->alt }}
@endif
@endforeach
@else
{{ data_get($content, 'empty_cta.title', 'New gallery photos landing soon') }}
{{ data_get($content, 'empty_cta.body') }}
@endif