@props([ 'hreflangAlternates' => [], ]) @php $supportedLocales = config('wasoria.supported_locales', ['fr', 'en']); $currentLocale = app()->getLocale(); // Use hreflang alternates (from controllers) for translated slug resolution // This handles blog articles, tag pages, etc. where slugs differ per locale $alternates = $hreflangAlternates; // Auto-generate alternates from current route name if not provided if (empty($alternates)) { // Missing locales fall back to that locale's home below $alternates = current_route_alternates(); } @endphp