@extends('layouts.nova') @php use Illuminate\Support\Str; // One accent colour set per content-type (cycles if more than 4) $accents = [ ['ring' => 'ring-sky-500/30', 'bg' => 'bg-sky-500/10', 'text' => 'text-sky-400', 'badge' => 'bg-sky-500/15 text-sky-300', 'pill' => 'hover:bg-sky-500/15 hover:text-sky-300', 'dot' => 'bg-sky-400', 'border' => 'border-sky-500/25'], ['ring' => 'ring-violet-500/30', 'bg' => 'bg-violet-500/10', 'text' => 'text-violet-400', 'badge' => 'bg-violet-500/15 text-violet-300', 'pill' => 'hover:bg-violet-500/15 hover:text-violet-300', 'dot' => 'bg-violet-400', 'border' => 'border-violet-500/25'], ['ring' => 'ring-amber-500/30', 'bg' => 'bg-amber-500/10', 'text' => 'text-amber-400', 'badge' => 'bg-amber-500/15 text-amber-300', 'pill' => 'hover:bg-amber-500/15 hover:text-amber-300', 'dot' => 'bg-amber-400', 'border' => 'border-amber-500/25'], ['ring' => 'ring-emerald-500/30', 'bg' => 'bg-emerald-500/10','text' => 'text-emerald-400','badge' => 'bg-emerald-500/15 text-emerald-300','pill' => 'hover:bg-emerald-500/15 hover:text-emerald-300','dot' => 'bg-emerald-400','border' => 'border-emerald-500/25'], ]; // Map content-type slug → icon SVG paths $typeIcons = [ 'photography' => '', 'wallpapers' => '', 'skins' => '', 'other' => '', ]; $defaultIcon = ''; @endphp @section('content') {{-- ── Hero header ── --}}

Skinbase

Browse Sections

Explore all artwork categories — photography, wallpapers, skins and more.

{{-- Quick-jump anchor links --}}
{{-- ── Content type sections ── --}}
@forelse ($contentTypes as $i => $ct) @php $a = $accents[$i % count($accents)]; $icon = $typeIcons[strtolower($ct->slug)] ?? $defaultIcon; $totalCount = $artworkCountsByType[$ct->id] ?? 0; $roots = $ct->rootCategories; @endphp
{{-- Section heading ── --}}
{!! $icon !!}

{{ $ct->name }}

@if ($totalCount > 0) {{ number_format($totalCount) }} artworks @endif
@if (!empty($ct->description))

{{ $ct->description }}

@endif
{{-- Separator line --}}
@if ($roots->isEmpty())
No categories available yet.
@else {{-- Root category cards grid --}}
@foreach ($roots as $root) @php $subCats = $root->children; @endphp
{{-- Card header --}}
{{ $root->name }} @if (!empty($root->description))

{{ $root->description }}

@endif
@if (($root->artwork_count ?? 0) > 0) {{ number_format($root->artwork_count) }} @endif
{{-- Sub-category pills --}}
@if ($subCats->isEmpty()) No subcategories @else @endif
{{-- Card footer link --}}
@endforeach
{{-- Mobile browse-all link --}} @endif
@empty

No sections available.

@endforelse
@endsection