@props([ 'title', 'icon', 'data', 'valueKey', 'valueType', 'relationship' => null, 'formatValue' => null, ])
{{ $title }}
{{ __($title) }}

@foreach ($data as $index => $entry)
$index + 1 == 1, 'leaderboard-second' => $index + 1 == 2, 'leaderboard-third' => $index + 1 == 3, ])> {{ $index + 1 }}
!Str::contains(setting('avatar_imager'), 'www.habbo.com'), ]) src="{{ setting('avatar_imager') }}{{ $relationship ? $entry->{$relationship}?->look : $entry->look }}&size=b&head_direction=2&gesture=sml&headonly=1" alt="" />

{{ $relationship ? $entry->{$relationship}?->username : $entry->username }}

{{ $formatValue ? $formatValue($entry->{$valueKey}) : $entry->{$valueKey} }} {{ $valueType }}

@endforeach