@extends('layouts.nova') @section('content') {{-- ── Hero header ── --}}

Discover

{{ $page_title ?? 'Discover' }}

@isset($description)

{{ $description }}

@endisset
{{-- Section switcher pills --}}
@auth For You @endauth @php $sections = [ 'trending' => ['label' => 'Trending', 'icon' => 'fa-fire'], 'fresh' => ['label' => 'Fresh', 'icon' => 'fa-bolt'], 'top-rated' => ['label' => 'Top Rated', 'icon' => 'fa-medal'], 'most-downloaded' => ['label' => 'Most Downloaded', 'icon' => 'fa-download'], 'on-this-day' => ['label' => 'On This Day', 'icon' => 'fa-calendar-day'], ]; $active = $section ?? ''; @endphp @foreach($sections as $slug => $meta) {{ $meta['label'] }} @endforeach
{{-- ── Artwork grid (React MasonryGallery) ── --}} @php $galleryArtworks = collect($artworks->items())->map(fn ($art) => [ 'id' => $art->id, 'name' => $art->name ?? null, 'thumb' => $art->thumb_url ?? $art->thumb ?? null, 'thumb_srcset' => $art->thumb_srcset ?? null, 'uname' => $art->uname ?? '', 'username' => $art->uname ?? '', 'avatar_url' => $art->avatar_url ?? null, 'category_name' => $art->category_name ?? '', 'category_slug' => $art->category_slug ?? '', 'slug' => $art->slug ?? '', 'width' => $art->width ?? null, 'height' => $art->height ?? null, ])->values(); $galleryNextPageUrl = method_exists($artworks, 'nextPageUrl') ? $artworks->nextPageUrl() : null; @endphp
@endsection @push('styles') @endpush @push('scripts') @vite('resources/js/entry-masonry-gallery.jsx') @endpush