@php use App\Models\Product; $products = Product::where('is_available', 1) ->with('images', 'category') ->inRandomOrder() ->limit(16) ->get(); @endphp @if($products->count()) {{-- HEADER --}} Perfumes Exclusivos Descubra fragrâncias únicas Seleção premium com experiências olfativas distintas Ver todos → {{-- GRID 2 LINHAS x 4 COLUNAS --}} @foreach($products as $product) @php $img = $product->images->first(); $now = now(); $onPromo = $product->promo_price && $product->promo_start && $product->promo_end && $now->between($product->promo_start, $product->promo_end); @endphp {{-- IMAGE --}} @if($onPromo) Promo @endif @if($product->is_featured) Destaque @endif {{-- INFO --}} {{ $product->name }} {{ $product->brand ?? '-' }} • {{ $product->category->name ?? '-' }} {{ $product->capacity ?? '' }} @if($onPromo) {{ number_format($product->price,2,',','.') }} Kz @endif {{ number_format($onPromo ? $product->promo_price : $product->price,2,',','.') }} Kz @endforeach @endif
Seleção premium com experiências olfativas distintas
{{ $product->brand ?? '-' }} • {{ $product->category->name ?? '-' }}