{{ translate('best_sellings')}}

{{ translate('view_all')}}
@foreach($bestSellProduct as $key=> $bestSellItem) @if($bestSellItem && $key<6)
@if(getProductPriceByType(product: $bestSellItem, type: 'discount', result: 'value') > 0)
-{{ getProductPriceByType(product: $bestSellItem, type: 'discount', result: 'string') }}
@endif
{{ translate('product') }}

{{ Str::limit($bestSellItem['name'],100) }}

@php($overallRating = getOverallRating($bestSellItem['reviews'])) @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(getProductPriceByType(product: $bestSellItem, type: 'discount', result: 'value') > 0) {{ webCurrencyConverter(amount: $bestSellItem->unit_price) }} @endif {{ getProductPriceByType(product: $bestSellItem, type: 'discounted_unit_price', result: 'string') }}

@endif @endforeach