@if ($section && $section->products->isNotEmpty())
{{-- align-items-start keeps "See all" level with the title; the description flows underneath instead of pushing it to the middle --}}

{{ $section->name }}

@if ($section->short_description)

{{ $section->short_description }}

@endif
{{ $section->name }}
@foreach ($section->products->take(9) as $product) @php $pricing = $product->pricing->first(); $mrp = (float) ($pricing?->mrp ?? 0); $sellingPrice = (float) ($pricing?->selling_price ?? $mrp); $discount = $mrp > 0 && $sellingPrice < $mrp ? (int) round((($mrp - $sellingPrice) / $mrp) * 100) : 0; $quantityLabel = $pricing?->label ?: trim(implode(' ', array_filter([ $pricing?->variant?->value, $pricing?->unit?->nickname ?: $pricing?->unit?->name, ]))); $productImage = \App\Helpers\Helper::get_image($product->image) ?: asset('backend/template/images/no-image.png'); @endphp
@if ($discount > 0) {{ $discount }}% Off @endif {{ $product->name }}
{{ $product->name }}

{{ $quantityLabel }}

{{-- @include('frontend.components.product-offer-countdown', compact('product', 'timerEndsAt')) --}}
₹{{ number_format($sellingPrice, 0) }} @if ($discount > 0) ₹{{ number_format($mrp, 0) }} @endif
1
@endforeach
@endif