@extends('layouts.app') @section('title', __('ui.local_experts_title').' ยท Coaster World') @section('content') @php $tierIcons = ['bronze' => '๐Ÿ“', 'silver' => '๐Ÿงญ', 'gold' => 'โœฆ', 'legend' => '๐Ÿ‘‘']; $reputationIcons = ['newcomer' => 'โ€ข', 'contributor' => 'โœฆ', 'trusted' => 'โœ“', 'reference' => 'โ—†', 'ambassador' => 'โ˜…']; @endphp
{{ __('ui.local_experts_kicker') }}

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

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

๐Ÿ›ก๏ธ

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

{{ $expertCount }}{{ __('ui.local_experts_stat_people') }}
{{ $coveredParkCount }}{{ __('ui.local_experts_stat_parks') }}
{{ $entryCount }}{{ __('ui.local_experts_stat_expertises') }}
@if($countryId || $parkId) {{ __('ui.local_experts_filter_reset') }} @endif
{{ __('ui.local_experts_directory_kicker') }}

{{ $selectedPark ? __('ui.local_experts_for_park', ['park' => $selectedPark->translations->firstWhere('locale', app()->getLocale())?->name ?: $selectedPark->official_name]) : __('ui.local_experts_directory_title') }}

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

@if($entries->count())
@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 }}
{{ '@'.$displayName }} {{ $tierIcons[$tier] ?? '๐Ÿ“' }} {{ __('ui.local_experts_tier_'.$tier) }}
{{ $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())
{{ $entries->links() }}
@endif @else
๐Ÿงญ
{{ __('ui.local_experts_empty_title') }}

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

@auth {{ __('ui.local_experts_empty_action') }} @endauth
@endif
{{ __('ui.local_experts_how_kicker') }}

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

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

๐ŸŽŸ๏ธ{{ __('ui.local_experts_how_visit_title') }}

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

โœฆ{{ __('ui.local_experts_how_contribute_title') }}

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

โญ{{ __('ui.local_experts_how_share_title') }}

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

๐Ÿ›ก๏ธ{{ __('ui.local_experts_how_trust_title') }}

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

@endsection