@php $currencyIcon = \App\Models\Setting::where('key', 'site_currency_icon')->value('value'); @endphp
{{ $product->name }}
({{ round($product->reviews_avg_rating, 2) }})
@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