Compare commits

...

2 Commits

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

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

Loading…
Cancel
Save