@php use App\Models\Product; $featuredProducts = Product::where('is_available', 1) ->where('is_featured', 1) ->with('images') ->inRandomOrder() ->get(); @endphp @if($featuredProducts->count())
{{-- HEADER --}}
Seleção Premium

Nossos Produtos em Destaque

Fragrâncias exclusivas escolhidas para elegância e presença

{{-- SLIDER --}}
@foreach($featuredProducts as $product) @php $image = $product->images->first(); $now = now(); $onPromo = $product->promo_price && $product->promo_start && $product->promo_end && $now->between($product->promo_start, $product->promo_end); @endphp @endforeach
{{-- SWIPER --}} @endif