@extends('layouts.nova') @section('content')

Creators

Rising Creators

Creators gaining momentum with the most views over the last 90 days.

Top Creators
@php $offset = ($creators->currentPage() - 1) * $creators->perPage(); $isFirstPage = $creators->currentPage() === 1; $showcaseTop = $isFirstPage ? $creators->getCollection()->take(3)->values() : collect(); $tableCreators = $isFirstPage ? $creators->getCollection()->slice(3)->values() : $creators->getCollection(); $rankBase = $isFirstPage ? 3 : 0; @endphp @if ($creators->isNotEmpty()) @if ($showcaseTop->isNotEmpty())
@foreach ($showcaseTop as $i => $creator) @php $rank = $i + 1; $profileUrl = ($creator->username ?? null) ? '/@' . $creator->username : '/profile/' . (int) $creator->user_id; $avatarUrl = \App\Support\AvatarUrl::forUser((int) $creator->user_id, $creator->avatar_hash ?? null, 64); $rankClasses = $rank === 1 ? 'bg-amber-400/15 text-amber-300 ring-amber-400/30' : ($rank === 2 ? 'bg-slate-400/15 text-slate-300 ring-slate-400/30' : 'bg-orange-700/20 text-orange-400 ring-orange-600/30'); @endphp
{{ $rank }} Recent Views
{{ $creator->uname }}
{{ $creator->uname ?? 'Unknown' }}
@if($creator->username ?? null)
{{ '@' . $creator->username }}
@endif
{{ number_format($creator->total ?? 0) }}
@endforeach
@endif
# Creator Recent Views
@foreach ($tableCreators as $i => $creator) @php $rank = $offset + $rankBase + $i + 1; $profileUrl = ($creator->username ?? null) ? '/@' . $creator->username : '/profile/' . (int) $creator->user_id; $avatarUrl = \App\Support\AvatarUrl::forUser((int) $creator->user_id, $creator->avatar_hash ?? null, 64); @endphp
@if ($rank === 1) 1 @elseif ($rank === 2) 2 @elseif ($rank === 3) 3 @else {{ $rank }} @endif
{{ $creator->uname }}

{{ $creator->uname }}

@if($creator->username ?? null)

{{ '@' . $creator->username }}

@endif
{{ number_format($creator->total) }}
@endforeach
{{ $creators->withQueryString()->links() }}
@else

No rising creators found yet. Check back soon!

@endif
@endsection