@php($overallRating = getOverallRating($product->reviews, $product))
@if($product->discount > 0) {{translate('Save Money')}} @if ($product->discount_type == 'percent') {{round($product->discount,(!empty($decimal_point_settings) ? $decimal_point_settings: 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 )--}} {{-- @endif--}}
{{ $product['name'] }}
@if($product->discount > 0) {{ webCurrencyConverter(amount: $product->unit_price) }} @endif {{ webCurrencyConverter(amount: $product->unit_price-(getProductDiscount(product: $product, price: $product->unit_price)) ) }}
{{number_format($overallRating[0], 1)}}
@php($rand_num = rand(1111,9999))
@csrf
@php($qty = 0)
{{translate('quantity')}} :
{{translate('total_price')}} :
  ({{translate('tax')}} : )