1
0
Fork 0

Add navbar.blade.php fardad website

main
Nisay 1 year ago
parent f55f7d5bb1
commit 8d2531af03

@ -1,64 +1,49 @@
<nav>
<ul id="mega-menu">
<li>
<a href="/">
<img src="{{asset('images/logo.png')}}" class="logo" alt="">
</a>
</li>
@foreach(\App\Helpers\getMainCats(4) as $mcat)
<div id="nav-menu">
<ul>
@foreach(\App\Helpers\getMainCats(12) as $mcat)
<li>
<a href="{{route('cat',$mcat->slug)}}">
{{$mcat->name}}
<i class="ri-arrow-drop-left-line"></i>
</a>
<ul>
<li>
<div class="sub-item">
<h3>
محبوب ترین
{{$mcat->name}}
ها
</h3>
<div class="grid">
<div>
<ul>
@foreach($mcat->products()->orderby('stock_quantity','desc')->limit(5)->get() as $p)
@foreach(\App\Helpers\getSubCats($mcat->id) as $subcat)
<li>
<a href="{{route('product',$p->slug)}}">
{{$p->name}}
<a href="{{route('cat',$subcat->slug)}}">
<i class="fa fa-external-link"></i>
{{$subcat->name}}
</a>
</li>
@endforeach
</ul>
</li>
<li>
<h3>
{{$mcat->name}}
به تفکیک
</h3>
</div>
<div>
<ul>
@foreach(\App\Helpers\getSubCats($mcat->id) as $subcat)
<li>
<a href="{{route('cat',$subcat->slug)}}">
<i class="fa fa-external-link"></i>
{{$subcat->name}}
</a>
</li>
@endforeach
</ul>
</li>
</div>
<div>
<img src="{{$mcat->thumbUrl()}}" class="img-fluid" alt="">
{{-- {{$mcat->description}}--}}
</div>
</div>
</div>
<li class="x-highlight">
<h3>
{{$mcat->name}}
</h3>
<br>
<p>
{{$mcat->description}}
</p>
</li>
<li>
<img src="{{$mcat->thumbUrl()}}" alt="">
</li>
</ul>
</li>
@endforeach
{!! \App\Helpers\MenuShowByName('menu') !!}
</ul>
</nav>
<div id="search-list"></div>
</div>

Loading…
Cancel
Save