Skip to content

Commit

Permalink
fixed publish bug
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Jan 26, 2025
1 parent 019b679 commit 548f09a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 548f09a

Please sign in to comment.