@props(['product']) @props(['mode']) @php $special = false; $today = date('Y-m-d'); if ($product->special_price_from) { if ($product->special_price_from <= $today && $product->special_price_to >= $today) { $special = true; } } @endphp @if (isset($mode))
{{ $product->name }} @if ($product->inventory->inventory > 0 && $product->in_stock) Available in stock @else Out of stock @endif

Price

@if ($special) ${{ number_format($product->price ?? 0, 2) }} ${{ number_format($product->special_price ?? 0, 2) }} @else ${{ number_format($product->price ?? 0, 2) }} @endif

Quantity

@if ($product->inventory->inventory > 0 && $product->in_stock) Add @else Out Of Stock @endif
@else {{--
@if (count($product->images)) @else @endif
@if ($special) Sale! @endif {{ $product->name }}
@if ($special) ${{ number_format($product->price ?? 0, 2) }} ${{ number_format($product->special_price ?? 0, 2) }} @else ${{ number_format($product->price ?? 0, 2) }} @endif
@if ($product->inventory->inventory > 0 && $product->in_stock) Add @else Out Of Stock @endif
--}}
@if (count($product->images)) @else @endif
@if ($special) Sale! @endif {{ $product->name }} {{-- Organic Grapes --}} {{-- Available in stock --}} @if ($product->inventory->inventory > 0 && $product->in_stock) Available in stock @else Out of stock @endif @if ($special) ${{ number_format($product->price ?? 0, 2) }} ${{ number_format($product->special_price ?? 0, 2) }} @else ${{ number_format($product->price ?? 0, 2) }} @endif
@if ($product->inventory->inventory > 0 && $product->in_stock) @else Out @endif
Add
@endif