@extends('layouts.nova') @section('content') {{-- ── Hero header ── --}}

Community

Top Authors

Most popular members ranked by artwork {{ $metric === 'downloads' ? 'downloads' : 'views' }}.

{{-- Metric switcher --}}
{{-- ── Leaderboard ── --}}
@php $offset = ($authors->currentPage() - 1) * $authors->perPage(); @endphp @if ($authors->isNotEmpty())
{{-- Table header --}}
# Author {{ $metric === 'downloads' ? 'Downloads' : 'Views' }}
{{-- Rows --}}
@foreach ($authors as $i => $author) @php $rank = $offset + $i + 1; $profileUrl = ($author->username ?? null) ? '/@' . $author->username : '/profile/' . (int) $author->user_id; $avatarUrl = \App\Support\AvatarUrl::forUser((int) $author->user_id, null, 40); @endphp
{{-- Rank badge --}}
@if ($rank === 1) 1 @elseif ($rank === 2) 2 @elseif ($rank === 3) 3 @else {{ $rank }} @endif
{{-- Author info --}} {{ $author->uname }}
{{ $author->uname ?? 'Unknown' }}
@if (!empty($author->username))
{{ '@' . $author->username }}
@endif
{{-- Metric count --}}
{{ number_format($author->total ?? 0) }}
@endforeach
{{ $authors->withQueryString()->links() }}
@else

No authors found.

@endif
@endsection