@php $lc = \App\Support\Hints::locale(); $areas = $this->getAreas(); $grouped = $this->getGrouped(); $user = auth()->user(); $totalHints = collect($grouped)->sum(fn ($g) => count($g)); $videoEmbed = $this->getVideoEmbedUrl(); $videoRaw = $this->getVideoRawUrl(); // Read accent color from AREAS registry (single source of truth) @endphp
{{-- HERO --}}
📖

{{ __('Ghid rapid AutoCRM') }}

{{ __('Toate răspunsurile la un click distanță. Fiecare pagină are propriile hint-uri „?" — sau caută mai jos.') }}

{{ $totalHints }}
{{ __('subiecte') }}
{{ count($areas) }}
{{ __('secțiuni') }}
{{-- VIDEO TUTORIAL (dacă e configurat) --}} @if ($videoEmbed)
@elseif ($videoRaw)
🎥

{{ __('Video tutorial') }}

{{ __('URL nerecunoscut — deschide-l direct:') }} {{ $videoRaw }}

@elseif ($user?->isAdmin())
🎥

{{ __('Video tutorial') }}

{{ __('Adaugă un link YouTube/Vimeo în') }} {{ __('Setări → Liste configurabile') }} →

@endif {{-- CONTROLS --}}
{{ __('Sugestii „?" pe pagini:') }} {{ $user?->hints_enabled ? __('ACTIVE') : __('DEZACTIV') }}
{{-- GRID --}}
@if (empty($grouped))
🔍
{{ __('Nicio potrivire pentru „:q".', ['q' => $search]) }}
@endif @foreach ($grouped as $areaKey => $hints) @php $area = $areas[$areaKey] ?? null; $accent = $area['color'] ?? '#6b7280'; @endphp
{{ $area['icon'] ?? '📖' }} {{ $area['label'][$lc] ?? $areaKey }} {{ count($hints) }}
@foreach ($hints as $key => $h)
{{ $h['title'][$lc] ?? $h['title']['ro'] }}
{{ $h['body'][$lc] ?? $h['body']['ro'] }} @if (! empty($h['next'][$lc]))
{{ $h['next'][$lc] }}
@endif @if (! empty($h['links'])) @endif
@endforeach
@endforeach