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

60 lines
2.1 KiB
PHTML

<nav>
<ul id="mega-menu">
@foreach(\App\Helpers\getMainCats(4) as $mcat)
<li>
<a href="{{route('cat',$mcat->slug)}}">
2 years ago
{{$mcat->name}}
</a>
<ul>
<li>
<h3>
محبوب ترین
{{$mcat->name}}
ها
</h3>
2 years ago
<ul>
@foreach($mcat->products()->orderby('stock_quantity','desc')->limit(5)->get() as $p)
2 years ago
<li>
<a href="{{route('product',$p->slug)}}">
{{$p->name}}
2 years ago
</a>
</li>
@endforeach
</ul>
</li>
<li>
<h3>
{{$mcat->name}}
به تفکیک
</h3>
2 years ago
<ul>
@foreach(\App\Helpers\getSubCats($mcat->id) as $subcat)
<li>
<a href="{{route('cat',$subcat->slug)}}">
{{$subcat->name}}
</a>
</li>
@endforeach
</ul>
</li>
2 years ago
<li class="x-highlight">
<h3>
{{$mcat->name}}
</h3>
<br>
<p>
{{$mcat->description}}
</p>
</li>
<li>
<img src="{{$mcat->thumbUrl()}}" alt="">
</li>
</ul>
</li>
2 years ago
@endforeach
{!! \App\Helpers\MenuShowByName('menu') !!}
2 years ago
</ul>
</nav>
<div id="search-list"></div>