@extends('layouts.nova') @php $latestBreadcrumbs = collect([ (object) ['name' => 'Uploads', 'url' => route('uploads.latest')], (object) ['name' => $page_title ?? 'Latest Artworks', 'url' => route('uploads.latest')], ]); $cursorStateLabel = request()->filled('cursor') ? 'Browsing archive' : 'Latest slice'; $cursorStateCopy = request()->filled('cursor') ? 'You are viewing an older slice of the cursor-based feed.' : 'You are viewing the newest public uploads first.'; $galleryArtworks = collect($artworks->items())->map(fn ($art) => [ 'id' => $art->id, 'name' => $art->name ?? null, 'thumb' => $art->thumb_url ?? $art->thumb ?? null, 'thumb_url' => $art->thumb_url ?? $art->thumb ?? null, 'thumb_srcset' => $art->thumb_srcset ?? null, 'uname' => $art->uname ?? '', 'username' => $art->username ?? '', 'avatar_url' => $art->avatar_url ?? null, 'content_type_name' => $art->content_type_name ?? '', 'content_type_slug' => $art->content_type_slug ?? '', 'category_name' => $art->category_name ?? '', 'category_slug' => $art->category_slug ?? '', 'slug' => $art->slug ?? '', 'width' => $art->width ?? null, 'height' => $art->height ?? null, 'published_at' => optional($art->published_at)?->toIsoString() ?? null, 'url' => isset($art->id) ? '/art/' . $art->id . '/' . ($art->slug ?: \Illuminate\Support\Str::slug($art->name ?? 'artwork')) : '#', ])->values(); $galleryNextPageUrl = method_exists($artworks, 'nextPageUrl') ? $artworks->nextPageUrl() : null; @endphp @section('content') Daily Uploads Discover Fresh Live feed Ordered by newest first This page {{ number_format($artworks->count()) }} Artworks loaded in the current slice. Position {{ $cursorStateLabel }} {{ $cursorStateCopy }} Per page {{ number_format($artworks->perPage()) }} Balanced for a fast modern gallery load. @endsection @push('styles') @endpush @push('scripts') @vite('resources/js/entry-masonry-gallery.jsx') @endpush
This page
{{ number_format($artworks->count()) }}
Artworks loaded in the current slice.
Position
{{ $cursorStateLabel }}
{{ $cursorStateCopy }}
Per page
{{ number_format($artworks->perPage()) }}
Balanced for a fast modern gallery load.