@php $navLinks = [ ['label' => __('footer.home'), 'href' => localized_route('home')], ['label' => __('footer.approach'), 'href' => localized_route('approach')], ['label' => __('footer.solutions'), 'href' => localized_route('solutions.performance-optimization')], ['label' => __('footer.products'), 'href' => localized_route('products.wasoria-box')], ['label' => __('footer.about'), 'href' => localized_route('about.team')], ['label' => __('footer.blog'), 'href' => localized_route('blog.index')], ['label' => __('footer.resources'), 'href' => localized_route('resources.index')], ['label' => __('footer.contact'), 'href' => localized_route('contact')], ]; // Solutions, use cases & products columns, straight from the mega-menu config (internal linking) $offerGroups = collect(menu_data()) ->whereIn('key', ['solutions', 'use-cases', 'products']) ->filter(fn ($group) => count($group['items']) > 0) ->map(fn ($group) => [ 'label' => __($group['label']), 'links' => collect($group['items'])->map(fn ($item) => ['label' => __($item['label']), 'href' => localized_route($item['route'])]), ]); $offerLinks = $offerGroups->flatMap(fn ($group) => $group['links']); // Company column: only the pages published in the current locale $companyLinks = collect([ 'approach' => 'footer.approach', 'about.team' => 'footer.team', 'about.innovations' => 'footer.innovations', 'blog.index' => 'footer.blog', 'resources.index' => 'footer.resources', 'contact' => 'footer.contact', ]) ->filter(fn ($label, $route) => Route::has(app()->getLocale() . '.' . $route)) ->map(fn ($label, $route) => ['label' => __($label), 'href' => localized_route($route)]) ->values(); $desktopColumns = $offerGroups->concat([['label' => __('footer.company'), 'links' => $companyLinks]]); $linkedinUrl = config('wasoria.linkedin_page_url', 'https://www.linkedin.com/company/wasoria/'); $contactEmail = config('wasoria.contact_email'); @endphp