@props([ 'images' => [], // Array of images: ['url' => 'path', 'thumbnail' => 'thumb_path', 'alt' => 'description', 'caption' => 'optional caption'] 'columns' => 4, // Number of columns in grid (1-6) 'gap' => 4, // Gap between images (1-8) 'aspectRatio' => 'square', // 'square', 'portrait', 'landscape', 'auto' 'showCaptions' => false, // Show captions on thumbnails 'enableZoom' => true, // Enable zoom in lightbox 'autoplay' => false, // Auto advance in lightbox 'autoplayInterval' => 5000, // Autoplay interval in ms 'class' => '', ]) @php $gridCols = [ 1 => 'grid-cols-1', 2 => 'grid-cols-1 sm:grid-cols-2', 3 => 'grid-cols-2 sm:grid-cols-3', 4 => 'grid-cols-2 sm:grid-cols-3 lg:grid-cols-4', 5 => 'grid-cols-2 sm:grid-cols-3 lg:grid-cols-5', 6 => 'grid-cols-2 sm:grid-cols-3 lg:grid-cols-6', ]; $gapClasses = [ 1 => 'gap-1', 2 => 'gap-2', 3 => 'gap-3', 4 => 'gap-4', 5 => 'gap-5', 6 => 'gap-6', 7 => 'gap-7', 8 => 'gap-8', ]; $aspectClasses = [ 'square' => 'aspect-square', 'portrait' => 'aspect-[3/4]', 'landscape' => 'aspect-[4/3]', 'auto' => '', ]; @endphp @if (!empty($images))
@else

No images found

Add some images to display in the gallery.

@endif