File: D:/HostingSpaces/PDeckers/opelkapitan.nl/app/views/layouts/partials/navigation.blade.php
<nav class="main-menu @if($data->content->code_name != 'home') no-home @endif">
<ul>
@foreach($menuItems as $item)
<li class="@if($data->content->code_name == $item->code_name || (isset($data->activeParts) && $data->activeParts && $item->code_name =='project_overview') || (isset($data->activeOtherParts) && $data->activeOtherParts && $item->code_name =='other')) active @endif @if($item->code_name == 'project_overview') parts @endif @if($item->code_name == 'other') other @endif">
<a href="/@if($item->route!='/'){{$item->route}}@endif">
{{$item->name}}
<span></span>
</a>
@if($item->code_name == 'project_overview' && (($data->content->code_name == 'project_overview' || $data->content->code_name == 'part') || (isset($data->activeParts) && $data->activeParts)))
<ul class="sub-menu">
@foreach($subItems as $subItem)
<li class="sub-item @if($data->content->code_name == $subItem->code_name || (isset($data->categoryType) && $subItem->code_name == 'kapitan_'.$data->categoryType)) active @endif ">
<a href="/{{$subItem->route}}">
{{$subItem->name}}
</a>
</li>
@endforeach
</ul>
@endif
@if($item->code_name == 'other' && (isset($data->activeOtherParts) && $data->activeOtherParts))
<ul class="sub-menu">
@foreach($subItems2 as $subItem)
<li class="sub-item @if($data->content->code_name == $subItem->code_name || (isset($data->categoryType) && $data->categoryType == $subItem->code_name ) ) active @endif ">
<a href="/{{$subItem->route}}">
{{$subItem->name}}
</a>
</li>
@endforeach
</ul>
@endif
</li>
@endforeach
<li class="@if(\Request::path() == 'fotoalbum') active @endif photoalbum">
<a href="/fotoalbum">
Fotoalbum
<span></span>
</a>
</li>
</ul>
</nav>