@foreach($entries as $entry)
@php
$user = $entry['user'];
$park = $entry['park'];
$parkTranslation = $park->translations->firstWhere('locale', app()->getLocale())
?? $park->translations->firstWhere('locale', 'en')
?? $park->translations->first();
$countryTranslation = $park->country?->translations?->firstWhere('locale', app()->getLocale())
?? $park->country?->translations?->firstWhere('locale', 'en')
?? $park->country?->translations?->first();
$displayName = $user->username ?: $user->name;
$initial = mb_strtoupper(mb_substr($displayName ?: '?', 0, 1));
$tier = $entry['tier'];
$repTier = $entry['reputation']['tier'] ?? 'newcomer';
@endphp
#{{ $entries->firstItem() + $loop->index }}
{{ $initial }}
{{ $entry['score'] }}{{ __('ui.local_experts_points_short') }}
๐ก
{{ $parkTranslation?->name ?: $park->official_name }}
๐๏ธ {{ $entry['visits'] }}
๐ข {{ $entry['rides'] }}
โฆ {{ $entry['contributions'] }}
โญ {{ $entry['reviews'] }}
๐ท {{ $entry['photos'] }}
๐ {{ $entry['helpful'] }}
{{ $reputationIcons[$repTier] ?? 'โข' }}
{{ __('ui.local_experts_reputation') }}
{{ __('ui.local_experts_reputation_'.$repTier) }}
{{ $entry['reputation']['score'] ?? 0 }}
@endforeach
@if($entries->hasPages())
@endif
@else