@php
$cats = $gallery->pluck('category')->filter()->unique()->sort()->values();
$liveCount = $gallery->where('published', true)->count();
@endphp
Add a photo
JPG, PNG or WebP · up to 5 MB
Gallery
{{ $gallery->count() }} {{ \Illuminate\Support\Str::plural('photo', $gallery->count()) }} · {{ $liveCount }} visible on the website
@if($gallery->isEmpty())
@else
@foreach($gallery as $g)
{{ $g->title }}
{{ $g->category }} · order {{ $g->sort_order }}@if($g->caption) · {{ \Illuminate\Support\Str::limit($g->caption, 60) }}@endif
@endforeach
@endif