Add navbar.blade.php fardad website

pull/10/head
Nisay 2 years ago
parent f55f7d5bb1
commit 8d2531af03

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

Loading…
Cancel
Save