@props(['product'])
@if (count($product->variants) > 0 || count($product->sizes) > 0)
@if (count($product->variants) > 0)
Colour
@endif @if (count($product->sizes) > 0)
Size
@endif
@endif
{{-- Ribbon condition --}} @php $now = now(); $activePrice = $product->prices->first(function ($price) use ($now) { return $price->start_date <= $now && $price->end_date >= $now; }); @endphp @if ($activePrice)
✪ ON SALE ✪
{{-- ★ symbol --}} @endif {{-- Product image --}} {{ $product->title }}
@if (count($product->variants) > 0)
@foreach ($product->variants as $variant) @endforeach
@endif

{{ $product->title }}

@php $now = now(); $activePrice = $product->prices->first(function ($price) use ($now) { return $price->start_date <= $now && $price->end_date >= $now; }); $currentPrice = $product->currentPrice(); $originalPrice = $product->msrp; $saveAmount = $originalPrice - $currentPrice; @endphp
@if ($activePrice && $currentPrice < $originalPrice) Now from ${{ Midhas::formatPrice($currentPrice) }}
Was ${{ Midhas::formatPrice($originalPrice) }} | Save ${{ Midhas::formatPrice($saveAmount) }} @else ${{ Midhas::formatPrice($currentPrice) }} @endif
@if ($product->isEnquiry()) @else @if ($product->total_stock > 0 && !$product->is_outof_stock) @else @endif @endif