@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
@else
@endif @if($product->product_type == 'physical' && $product->current_stock <= 0) {{translate('out_of_stock')}} @endif
@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)) ) }}
@if(isset($is_main) && $is_main == 1)
@csrf
@php($qty = 0)
{{translate('quantity')}} :
{{translate('total_price')}} :
  ({{translate('tax')}} : )
@endif