@extends('layouts.app') @section('title', __('ui.hof_title').' โ€” Coaster World') @section('content') @php $icons = [ 'xp' => 'โœฆ', 'coasters' => '๐ŸŽข', 'parks' => '๐Ÿฐ', 'countries' => '๐ŸŒ', 'manufacturers' => '๐Ÿ—๏ธ', 'badges' => '๐Ÿ†', 'challenges' => 'โšก', 'expert_parks' => '๐Ÿ“', 'reputation' => '๐Ÿ›ก๏ธ', 'best_expertise' => '๐Ÿ‘‘', ]; $targetName = null; if ($spotlightTarget) { if ($spotlightType === 'manufacturer') { $targetName = $spotlightTarget->name; } else { $tr = $spotlightTarget->translations?->firstWhere('locale', app()->getLocale()) ?? $spotlightTarget->translations?->firstWhere('locale', 'en') ?? $spotlightTarget->translations?->first(); $targetName = $tr?->name ?: $spotlightTarget->official_name; } } $personalPark = $personalRecords['best_expertise_park'] ?? null; $personalParkName = null; if ($personalPark) { $ptr = $personalPark->translations?->firstWhere('locale', app()->getLocale()) ?? $personalPark->translations?->firstWhere('locale', 'en') ?? $personalPark->translations?->first(); $personalParkName = $ptr?->name ?: $personalPark->official_name; } @endphp
{{ __('ui.hof_kicker') }}

{{ __('ui.hof_title') }}

{{ __('ui.hof_intro') }}

{{ __('ui.hof_legends_kicker') }}

{{ __('ui.hof_legends_title') }}

{{ __('ui.hof_legends_intro') }}

{{ __('ui.hof_category_kicker') }}

{{ $icons[$category] ?? 'โ˜…' }} {{ __('ui.hof_metric_'.$category) }}

{{ __('ui.hof_category_intro') }}

@if($viewerEntry)
{{ __('ui.hof_your_rank') }} #{{ $viewerEntry['position'] }} {{ number_format((int) $viewerEntry[$category], 0, ',', ' ') }}
@endif
@if($categoryEntries->isNotEmpty())
@foreach($categoryEntries as $entry) @php $u = $entry['user']; $isMe = (int) $u->id === (int) auth()->id(); @endphp
#{{ $entry['position'] }}
{{ mb_strtoupper(mb_substr((string) ($u->username ?: $u->name), 0, 1)) }}
@if($u->username){{ $u->username }}@else{{ $u->name }}@endif {{ $isMe ? __('ui.rankings_you') : __('ui.hof_explorer') }}
{{ number_format((int) $entry[$category], 0, ',', ' ') }}
@endforeach
@else
๐Ÿ

{{ __('ui.hof_empty_title') }}

{{ __('ui.hof_empty_text') }}

@endif
{{ __('ui.hof_spotlight_kicker') }}

{{ __('ui.hof_spotlight_title') }}

{{ __('ui.hof_spotlight_intro') }}

@if($spotlightTarget)
{{ __('ui.hof_spotlight_for', ['name' => $targetName]) }}{{ __('ui.hof_top_25') }}
@if($spotlightEntries->isNotEmpty())
@foreach($spotlightEntries as $entry) @php $u = $entry['user']; @endphp
#{{ $entry['position'] }}
{{ mb_strtoupper(mb_substr((string) ($u->username ?: $u->name), 0, 1)) }}
@if($u->username){{ $u->username }}@else{{ $u->name }}@endif @if($spotlightType === 'park') ๐ŸŽŸ๏ธ {{ $entry['visits'] ?? 0 }} ยท ๐ŸŽข {{ $entry['rides'] ?? 0 }} ยท {{ __('ui.local_experts_tier_'.($entry['tier'] ?? 'progress')) }} @elseif($spotlightType === 'country') ๐ŸŽข {{ $entry['coasters'] ?? 0 }} ยท ๐Ÿฐ {{ $entry['parks'] ?? 0 }} ยท ๐ŸŽŸ๏ธ {{ $entry['rides'] ?? 0 }} @else ๐ŸŽข {{ $entry['coasters'] ?? 0 }} ยท ๐ŸŽŸ๏ธ {{ $entry['rides'] ?? 0 }} @endif
{{ number_format((int) $entry['value'], 0, ',', ' ') }}
@endforeach
@else
{{ __('ui.hof_spotlight_empty') }}
@endif @else
{{ __('ui.hof_spotlight_prompt') }}
@endif
{{ __('ui.hof_personal_kicker') }}

{{ __('ui.hof_personal_title') }}

{{ __('ui.hof_personal_intro') }}

๐ŸŽŸ๏ธ{{ __('ui.hof_record_total_rides') }}{{ number_format($personalRecords['total_rides'], 0, ',', ' ') }}
๐ŸŽข{{ __('ui.hof_metric_coasters') }}{{ $personalRecords['coasters'] }}
๐ŸŒ{{ __('ui.hof_metric_countries') }}{{ $personalRecords['countries'] }}
๐Ÿ—๏ธ{{ __('ui.hof_metric_manufacturers') }}{{ $personalRecords['manufacturers'] }}
๐Ÿ“…{{ __('ui.hof_record_best_day') }}{{ $personalRecords['best_day_count'] }}{{ $personalRecords['best_day_date'] ?: 'โ€”' }}
๐Ÿ—“๏ธ{{ __('ui.hof_record_best_year') }}{{ $personalRecords['best_year_count'] }}{{ $personalRecords['best_year'] ?: 'โ€”' }}
๐Ÿ“{{ __('ui.hof_metric_expert_parks') }}{{ $personalRecords['expert_parks'] }}
๐Ÿ‘‘{{ __('ui.hof_record_best_expertise') }}{{ (int) data_get($personalRecords, 'best_expertise.score', 0) }}{{ $personalParkName ?: 'โ€”' }}
๐Ÿ›ก๏ธ{{ __('ui.hof_metric_reputation') }}{{ (int) data_get($personalRecords, 'reputation.score', 0) }}{{ __('ui.local_experts_reputation_'.data_get($personalRecords, 'reputation.tier', 'newcomer')) }}
๐Ÿ”’
{{ __('ui.hof_privacy_title') }}

{{ __('ui.hof_privacy_text') }}

@endsection