{{-- * Navigation principale moderne avec Tailwind CSS et design glassmorphisme - Fixée en haut --}} @php use App\Models\Confession; // ! Pré-calcul des drapeaux et libellés pour chaque locale supportée $navbarLanguageOptions = Confession::getAvailableLanguages(); $navbarFlags = []; $navbarLabels = []; foreach ($navbarLanguageOptions as $code => $label) { $parts = preg_split('/\s+/', trim($label), 2); $navbarFlags[$code] = $parts[0] ?? '🌍'; $navbarLabels[$code] = $parts[1] ?? strtoupper($code); } $navbarCurrentLocale = app()->getLocale(); $navbarCurrentFlag = $navbarFlags[$navbarCurrentLocale] ?? '🌍'; $navbarCurrentLabel = $navbarLabels[$navbarCurrentLocale] ?? strtoupper($navbarCurrentLocale); @endphp