File: D:/HostingSpaces/SBogers10/helder.komma.pro/resources/views/site/organisms/footer.blade.php
<footer class="u-min-margin-top">
<div class="c-footer l-grid">
<nav class="c-footer__nav">
@if(isset($links))
@foreach(config('site.footerNavigation') as $navKey => $navItem)
{{-- Special menu's for database generated entries --}}
@if(!is_array($navItem) && isset($links->subnav->{$navItem}))
@if(isset($links->{$navItem}))
<dl class="c-footer__column">
<dt class="c-footer__item">
<a class="c-footer__link c-footer__link--heading" href="/{{ $links->{$navItem}->route }}">{{ $links->{$navItem}->name }}</a>
</dt>
{{-- Just to be sure check if subnav isset --}}
@if(isset($links->subnav->{$navItem}))
{{-- Loop throught the groups--}}
@foreach( $links->subnav->{$navItem} as $subNavKey => $subnav)
{{-- Loop through the items --}}
@foreach($subnav as $subNavItem)
{{-- Only add gaps in the solutions for each group --}}
<dd class="c-footer__item @if($loop->first && !$loop->parent->first && $navItem != 'products') c-footer__item--gap @endif ">
<a class="c-footer__link" href="/{{ $links->{$navItem}->route }}/{{$subNavItem->route}}">{{ $subNavItem->node->translation->name }}</a>
</dd>
@endforeach
@endforeach
@endif
</dl>
@endif
{{-- All other navItems should be arrays of pages as defined in the config --}}
@elseif(is_array($navItem))
<dl class="c-footer__column">
<dt class="c-footer__item">
<span class="c-footer__link c-footer__link--has-no-hover c-footer__link--heading">@lang('site/global.menu.' . $navKey . 'Title')</span>
</dt>
@foreach($navItem as $subNavItem)
{{-- There could also be another array to create a sub sub menu --}}
@if(is_array($subNavItem))
{{-- Sorry no better name found... --}}
@foreach($subNavItem as $subSubNavItem)
@continue(!isset($links->{$subSubNavItem}))
<li class="c-footer__item @if($loop->first && !$loop->parent->first) c-footer__item--gap @endif ">
<a class="c-footer__link" href="/{{ $links->{$subSubNavItem}->route }}">{{ $links->{$subSubNavItem}->name }}</a>
</li>
@endforeach
@else
@if($subNavItem == 'support')
<li class="c-footer__item">
<a class="c-footer__link" target="_blank" href="@lang('site/global.supportLink')">@lang('site/global.supportNavItem')</a>
</li>
@endif
@continue(!isset($links->{$subNavItem}))
<li class="c-footer__item">
<a class="c-footer__link" href="/{{ $links->{$subNavItem}->route }}">{{ $links->{$subNavItem}->name }}</a>
</li>
@endif
@endforeach
</dl>
@else
{{ debug("Footer: No array is defined and the code isn't build for other situations...") }}
@endif
@endforeach
@endif
</nav>
</div>
@include('site.components.subfooter')
</footer>