You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/website/component/navbar2.blade.php

34 lines
1.2 KiB
PHTML

<nav>
<ul id="mega-menu">
@foreach(\App\Helpers\getMainCats(8) as $mcat)
<li>
<a href="{{route('cat',$mcat->slug)}}">
{{$mcat->name}}
</a>
<ul>
@foreach(\App\Helpers\getSubCats($mcat->id) as $subcat)
<li>
<h3>
<a href="{{route('cat',$subcat->slug)}}">
{{$subcat->name}}
</a>
</h3>
<ul>
@foreach(\App\Helpers\getSubCats($subcat->id) as $sc)
<li>
<a href="{{route('cat',$sc->slug)}}">
{{$sc->name}}
</a>
</li>
@endforeach
</ul>
</li>
@endforeach
</ul>
</li>
@endforeach
{!! \App\Helpers\MenuShowByName('menu') !!}
</ul>
</nav>
<div id="search-list"></div>