@extends('layouts.nova') @push('head') @endpush @section('content')
@php $hasQuery = isset($q) && $q !== ''; $resultCount = method_exists($artworks, 'total') ? (int) $artworks->total() : 0; $galleryArtworks = collect($artworks->items())->map(fn ($art) => [ 'id' => $art->id ?? null, 'name' => $art->name ?? null, 'thumb' => $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, 'category_name' => $art->category_name ?? '', 'category_slug' => $art->category_slug ?? '', 'slug' => $art->slug ?? '', 'width' => $art->width ?? null, 'height' => $art->height ?? null, 'views' => $art->views ?? null, 'likes' => $art->likes ?? null, 'downloads' => $art->downloads ?? null, ])->values(); $galleryNextPageUrl = method_exists($artworks, 'nextPageUrl') ? $artworks->nextPageUrl() : null; @endphp

Discover

Search

{{ $hasQuery ? 'Results for "' . $q . '"' : 'Find artworks, creators, and styles across Skinbase.' }}

@if($hasQuery)
Sort by: @foreach(['latest' => 'Newest', 'popular' => 'Most viewed', 'likes' => 'Most liked', 'downloads' => 'Most downloaded'] as $key => $label) {{ $label }} @endforeach {{ number_format($resultCount) }} {{ $resultCount === 1 ? 'result' : 'results' }}
@endif @if($hasQuery && $resultCount === 0)

No results for "{{ $q }}"

Try a different keyword or browse trending artworks.

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