Compare commits

...

2 Commits

@ -25,7 +25,7 @@
<div class="cat{{$cat->id}} pedi-tab mp-4 @if($k == 0 ) active @endif">
<div class="row">
@foreach($cat->products()->limit(6)->get() as $product)
@foreach($cat->products()->where('status',1)->orderByDesc('id')->limit(6)->get() as $product)
<div class="col-lg-6">
<a class="pedi-product" href="{{$product->webUrl()}}">
<img src="{{$product->thumbUrl()}}" alt="{{$product->name}}" class="float-start">
@ -36,7 +36,7 @@
{{$product->name}}
</h4>
<p>
{{\Illuminate\Support\Str::limit(strip_tags($product->description))}}
{{\Illuminate\Support\Str::limit($product->excerpt)}}
</p>
</a>
</div>

@ -37,7 +37,7 @@
<div class="cat{{$cat->id}} tal-tab mb-4 @if($k == 0 ) active @endif" >
<div class="row">
@foreach($cat->products()->limit(4)->get() as $product)
@foreach($cat->products()->where('status',1)->orderByDesc('id')->limit(4)->get() as $product)
<div class="col-lg-3 col-md-6">
<div class="tal-product">
@include(\App\Models\Area::where('name','product-grid')->first()->defPart(),compact('product'))

Loading…
Cancel
Save