@php $aboutLink = collect($staticLinks)->firstWhere('id', 'about'); $contactLink = collect($staticLinks)->firstWhere('id', 'contact'); $servicesLabel = $navLabel('services', 'Solutions and Services'); $industriesLabel = $navLabel('industries', 'Business Types'); $portfolioLabel = $navLabel('portfolio', 'Our Portfolio'); $languageLabel = $navLabel('region_and_language', 'Region and language'); $languages = $languages ?? []; $currentLocale = $currentLocale ?? app()->getLocale(); $logoHref = $logoHref ?? config('dynamic-nav-megamenu.parent_href', '/'); $iconPath = $iconPath ?? asset('images/criazo-icon.svg'); $wordmarkPath = $wordmarkPath ?? asset('images/criazo-wordmark.svg'); @endphp
{{-- Root --}}
{{-- Language / region --}} {{-- Services index --}} {{-- Service detail --}} @foreach($serviceGroups as $group) @php $discoverLinks = $group['discover'] ?? []; $moreLinks = $group['more'] ?? []; @endphp @endforeach {{-- Industries index --}} {{-- Industry detail --}} @foreach($industrySections as $section) @php $items = $section['items'] ?? []; $primaryItems = array_slice($items, 0, 6); $specialtyItems = array_slice($items, 6); @endphp @endforeach {{-- Portfolio --}}