@if(isset($product)) @php($overallRating = getOverallRating($product->reviews))
@if(getProductPriceByType(product: $product, type: 'discount', result: 'value') > 0)
-{{ getProductPriceByType(product: $product, type: 'discount', result: 'string') }}
@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

{{ $product['name'] }}

@if(getProductPriceByType(product: $product, type: 'discount', result: 'value') > 0) {{ webCurrencyConverter(amount: $product->unit_price) }} @endif {{ getProductPriceByType(product: $product, type: 'discounted_unit_price', result: 'string') }}

@endif