@php $expertEntries = collect($localExpertise['entries'] ?? []); $expertReputation = $localExpertise['reputation'] ?? ['score' => 0, 'tier' => 'newcomer']; $expertCount = (int) ($localExpertise['expert_count'] ?? 0); $expertTierIcons = ['progress' => '◌', 'bronze' => '📍', 'silver' => '🧭', 'gold' => '✦', 'legend' => '👑']; $reputationIcons = ['newcomer' => '•', 'contributor' => '✦', 'trusted' => '✓', 'reference' => '◆', 'ambassador' => '★']; @endphp @if($expertEntries->isNotEmpty() || (int) ($expertReputation['score'] ?? 0) > 0)
{{ __('ui.profile_local_experts_kicker') }}

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

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

{{ __('ui.profile_local_experts_directory') }}
{{ $reputationIcons[$expertReputation['tier'] ?? 'newcomer'] ?? '•' }}
{{ __('ui.local_experts_reputation') }} {{ __('ui.local_experts_reputation_'.($expertReputation['tier'] ?? 'newcomer')) }}

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

{{ (int) ($expertReputation['score'] ?? 0) }}
{{ $expertCount }}{{ __('ui.profile_local_experts_count') }}
{{ (int) ($expertReputation['contributions'] ?? 0) }}{{ __('ui.local_experts_contributions') }}
{{ (int) ($expertReputation['photos'] ?? 0) }}{{ __('ui.local_experts_photos') }}
{{ (int) ($expertReputation['helpful'] ?? 0) }}{{ __('ui.local_experts_helpful') }}
@if($expertEntries->isNotEmpty())
@foreach($expertEntries as $expert) @php $expertPark = $expert['park']; $expertParkTranslation = $expertPark->translations->firstWhere('locale', app()->getLocale()) ?? $expertPark->translations->firstWhere('locale', 'en') ?? $expertPark->translations->first(); $expertCountryTranslation = $expertPark->country?->translations?->firstWhere('locale', app()->getLocale()) ?? $expertPark->country?->translations?->firstWhere('locale', 'en') ?? $expertPark->country?->translations?->first(); $expertTier = $expert['tier']; @endphp
{{ $expertTierIcons[$expertTier] ?? '◌' }}
{{ $expertParkTranslation?->name ?: $expertPark->official_name }}
{{ $expert['score'] }}{{ __('ui.local_experts_points_short') }}
{{ __('ui.local_experts_tier_'.$expertTier) }} @unless($expert['is_expert']) {{ __('ui.profile_local_experts_progress', ['percent' => $expert['progress_percent']]) }} @endunless
🎟️ {{ $expert['visits'] }} 🎢 {{ $expert['rides'] }} ✦ {{ $expert['contributions'] }} ⭐ {{ $expert['reviews'] }} 📷 {{ $expert['photos'] }}
@endforeach
@endif
@endif