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/navbar.blade.php

50 lines
1.8 KiB
PHTML

<div id="nav-menu">
<ul>
@foreach(\App\Helpers\getMainCats(12) as $mcat)
2 years ago
<li>
<a href="{{route('cat',$mcat->slug)}}">
{{$mcat->name}}
<i class="ri-arrow-drop-left-line"></i>
2 years ago
</a>
<div class="sub-item">
<h3>
2 years ago
{{$mcat->name}}
</h3>
<div class="grid">
<div>
2 years ago
<ul>
@foreach(\App\Helpers\getSubCats($mcat->id) as $subcat)
2 years ago
<li>
<a href="{{route('cat',$subcat->slug)}}">
<i class="fa fa-external-link"></i>
{{$subcat->name}}
2 years ago
</a>
</li>
@endforeach
</ul>
</div>
<div>
2 years ago
<ul>
@foreach(\App\Helpers\getSubCats($mcat->id) as $subcat)
<li>
<a href="{{route('cat',$subcat->slug)}}">
<i class="fa fa-external-link"></i>
2 years ago
{{$subcat->name}}
</a>
</li>
@endforeach
</ul>
</div>
<div>
<img src="{{$mcat->thumbUrl()}}" class="img-fluid" alt="">
{{-- {{$mcat->description}}--}}
</div>
</div>
</div>
2 years ago
</li>
2 years ago
@endforeach
</ul>
</div>