@extends("layouts.master") @section("title", "Gallery") @section("content")
@forelse ($galleries as $gallery)

{{ $gallery->title }}

@if ($gallery->description)
{!! nl2br(e($gallery->description)) !!}
@endif
@foreach ($gallery->images as $image) @php $imageUrl = asset('storage/' . ltrim($image->image_path, '/')); $imageAlt = $image->alt_text ?: $gallery->title; @endphp
@endforeach
@empty

No gallery albums have been published yet.

@endforelse
@endsection