@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
@csrf
Photo *
Drop a photo or click to browse
Landscape photos of classes, labs and events look best
@error('image')
{{ $message }}
@enderror
@if($cats->isNotEmpty())
@foreach($cats as $c)@endforeach
@endif

Gallery

{{ $gallery->count() }} {{ \Illuminate\Support\Str::plural('photo', $gallery->count()) }} · {{ $liveCount }} visible on the website
@if($gallery->isEmpty()) @else
@foreach($gallery as $g)
{{ $g->caption ?: $g->title }}
{{ $g->title }}
{{ $g->category }} · order {{ $g->sort_order }}@if($g->caption) · {{ \Illuminate\Support\Str::limit($g->caption, 60) }}@endif
@csrf
@csrf @method('DELETE')
@endforeach
@endif