@if(isset($product)) @php($overallRating = getOverallRating($product->reviews))
@if($product->discount > 0)
@if ($product->discount_type == 'percent') -{{ round($product->discount,(!empty($decimalPointSettings) ? $decimalPointSettings: 0))}}% @elseif($product->discount_type =='flat') -{{ webCurrencyConverter(amount: $product->discount) }} @endif
@endif
{{$product['name']}}
@if($overallRating[0] != 0 )
@for($inc=1;$inc<=5;$inc++) @if ($inc <=(int)$overallRating[0]) @elseif ($overallRating[0] != 0 && $inc <= (int)$overallRating[0] + 1.1 && $overallRating[0]> ((int)$overallRating[0])) @else @endif @endfor
@endif
@if($product->discount > 0) {{ webCurrencyConverter(amount: $product->unit_price) }} @endif {{ webCurrencyConverter(amount: $product->unit_price-getProductDiscount(product: $product, price: $product->unit_price)) }}
@endif