@extends('layouts.nova') @php $memberPhotoBreadcrumbs = collect([ (object) ['name' => 'Members', 'url' => route('creators.top')], (object) ['name' => $page_title ?? 'Member Photos', 'url' => route('members.photos')], ]); $memberPhotoItems = collect(method_exists($artworks ?? null, 'items') ? $artworks->items() : ($artworks ?? [])); $memberPhotoGallery = $memberPhotoItems->map(fn ($art) => [ 'id' => $art->id ?? null, 'name' => $art->name ?? $art->title ?? 'Artwork', 'slug' => $art->slug ?? \Illuminate\Support\Str::slug($art->name ?? $art->title ?? 'artwork'), 'url' => $art->url ?? ((isset($art->id) && $art->id) ? '/art/' . $art->id . '/' . ($art->slug ?? \Illuminate\Support\Str::slug($art->name ?? $art->title ?? 'artwork')) : '#'), 'thumb' => $art->thumb ?? $art->thumb_url ?? null, 'thumb_url' => $art->thumb_url ?? $art->thumb ?? null, 'thumb_srcset' => $art->thumb_srcset ?? null, 'uname' => $art->uname ?? $art->author ?? '', 'username' => $art->username ?? $art->uname ?? '', '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 ?? '', 'width' => $art->width ?? null, 'height' => $art->height ?? null, 'published_at' => !empty($art->published_at) ? (method_exists($art->published_at, 'toIsoString') ? $art->published_at->toIsoString() : (string) $art->published_at) : null, ]); $memberPhotosNextPageUrl = method_exists($artworks ?? null, 'nextPageUrl') ? $artworks->nextPageUrl() : null; @endphp @section('content') Community uploads {{-- ── Artwork grid ── --}}
@if ($memberPhotoGallery->isNotEmpty())
@else

No artworks found.

@endif
@endsection @push('scripts') @vite('resources/js/entry-masonry-gallery.jsx') @endpush