@include('public.partials.header', [
'activeGroup' => null,
'activeSlug' => 'gallery',
'isStatic' => true,
'showBack' => true,
'anchorPrefix' => '/',
])
@php
// Filter buttons: the curated category order, limited to categories that
// actually have a published project (plus any legacy free-text category).
$used = $projects->pluck('category')->filter(fn ($c) => trim((string) $c) !== '')->unique()->values();
$categories = collect(\App\Models\Project::CATEGORIES)->filter(fn ($c) => $used->contains($c))
->concat($used->reject(fn ($c) => in_array($c, \App\Models\Project::CATEGORIES, true)))
->values();
@endphp
{{-- Shown by JS only when the visitor arrived from the home page, so they
can hop back to the exact « Selected works » section they came from. --}}
Back to Selected works