@php $currentLocale = app()->getLocale(); $localeOptions = [ 'en' => ['flag' => '🇬🇧', 'label' => 'English'], 'fr' => ['flag' => '🇫🇷', 'label' => 'Français'], 'ar' => ['flag' => '🇹🇳', 'label' => 'العربية'], ]; @endphp {{-- Language switcher: a select with flags that submits the chosen locale. --}}