@if($product->getPrimaryImageUrl())
@else
@endif
{{-- Badges --}}
@if($isNew)
New
@endif
@if($discount && !$hasVariants)
-{{ $discount }}%
@endif
{{-- Wishlist --}}
{{-- Stock --}}
@if(!$inStock)
Out of Stock
@elseif(!$hasVariants && $currentStock > 0 && $currentStock <= 5)
Only {{ (int)$currentStock }} left!
@endif
{{-- Content --}}
@if($hasVariants)
{{ $product->activeVariations->count() }} options
@endif
{{ $product->name }}
@if($hasVariants && $priceRange['has_range'])
₹{{ number_format($priceRange['min']) }} - ₹{{ number_format($priceRange['max']) }}
@else
₹{{ number_format($product->sale_price) }}
@if($product->mrp && $product->mrp > $product->sale_price)
₹{{ number_format($product->mrp) }}
@endif
@endif
{{-- Button --}}
@if(!$inStock)
@elseif($hasVariants)
View Options
@else
@endif