@extends('layouts.nova') @php $headerBreadcrumbs = collect([ (object) ['name' => $page_title, 'url' => route('legacy.top_favourites')], ]); $galleryArtworks = collect(method_exists($artworks, 'items') ? $artworks->items() : [])->map(fn ($art) => [ 'id' => $art->id ?? null, 'name' => $art->name ?? null, 'slug' => $art->slug ?? null, 'url' => $art->url ?? 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 ?? $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, 'favourites' => (int) ($art->favourites ?? $art->num ?? 0), ])->values(); $galleryNextPageUrl = method_exists($artworks, 'nextPageUrl') ? $artworks->nextPageUrl() : null; @endphp @section('content') @if ($artworks && $artworks->count()) @else No artworks have been favourited yet. Once members start saving artworks, they will appear here. @endif @endsection @push('styles') @endpush @push('scripts') @vite('resources/js/entry-masonry-gallery.jsx') @endpush
No artworks have been favourited yet.
Once members start saving artworks, they will appear here.