{{-- Language switcher dropdown — used in both user + admin headers. POSTs to /locale and reloads the page so the new locale takes effect everywhere. Closes on outside click. No external JS dep. --}} @php $active = \App\Support\LocaleSettings::active(); $current = app()->getLocale(); $curRow = collect($active)->firstWhere('code', $current) ?? collect($active)->first(); $curLabel = $curRow['code'] ?? strtoupper($current); @endphp @if (count($active) > 1)