Compare commits

...

3 Commits

@ -455,9 +455,9 @@ function getProductByCatQ($id, $order = 'id', $limit = 10)
* @param $id
* @return Cat[]|\Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection|\LaravelIdea\Helper\App\Models\_IH_Cat_C
*/
function getSubCats($id)
function getSubCats($id,$limit = 99)
{
return Cat::where('parent_id', $id)->get();
return Cat::where('parent_id', $id)->limit($limit)->get();
}
/***

@ -10154,8 +10154,10 @@ aside .form-check {
}
#top-top .logo {
max-height: 65px;
max-width: 100%;
max-height: 45px;
max-width: 75%;
width: auto;
height: auto;
float: right;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

@ -189,8 +189,10 @@ aside .form-check {
}
#top-top .logo {
max-height: 65px;
max-width: 100%;
max-height: 45px;
max-width: 75%;
width: auto;
height: auto;
float: right;
}

@ -85,7 +85,7 @@
<section id="top-top">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-12 text-start">
<div class="col-lg-4 col-md-12 text-start d-flex align-items-center">
{{-- <div class='marquee'>--}}
{{-- <div class="row mt-2 pt-1" >--}}
{{-- <a class="col" href="tel:{{\App\Helpers\getSetting('tel')}}">--}}
@ -144,4 +144,4 @@
</div>
</section>
@include('website.component.navbar')
@include('website.component.navbar2')

@ -1,6 +1,6 @@
<nav>
<ul id="mega-menu">
@foreach(\App\Helpers\getMainCats(4) as $mcat)
@foreach(\App\Helpers\getMainCats(8) as $mcat)
<li>
<a href="{{route('cat',$mcat->slug)}}">
{{$mcat->name}}

@ -0,0 +1,33 @@
<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,4) 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>
Loading…
Cancel
Save