@php $currencyIcon = \App\Models\Setting::where('key', 'site_currency_icon')->value('value'); @endphp @props(['class' => 'col-6 col-xxl-3 col-lg-4 col-md-4 col-sm-6'])

{{ $product->name }}

({{ round($product->reviews_avg_rating, 2) ?? 0 }})
By {{ $product->store->name }}
@php $price = $product->getEffectivePriceAndStock(); @endphp @if ($price['in_stock']) @if ($price['old_price'] > 0) {{ $currencyIcon }}{{ $price['price'] }} {{ $currencyIcon }}{{ $price['old_price'] }} @else {{ $currencyIcon }}{{ $price['price'] }} @endif @else Out of stock @endif
@if ($price['in_stock']) @endif