@php use App\Utils\Helpers; use App\Utils\ProductManager; @endphp

{{ translate('top') }} {{ translate('stores') }}

@foreach($topVendorsList as $vendorData) @if($vendorData && $vendorData->products_count >0)
@if(isset($vendorData?->coupon_list) && count($vendorData?->coupon_list)>0)
{{ translate('USE_COUPON').':'}} {{$vendorData?->coupon_list[0]['code']}}
@endif
{{ $vendorData->name }}
{{ $vendorData->products_count }} {{ translate('products') }}
@for($inc=0;$inc<5;$inc++) @if($inc<$vendorData->average_rating) @else @endif @endfor
({{ $vendorData->review_count }})
@if($vendorData->products)
@foreach($vendorData->products as $product)
@if($product['discount'] > 0) {{webCurrencyConverter($product['unit_price'])}} @endif {{webCurrencyConverter($product['unit_price']-Helpers::getProductDiscount($product,$product['unit_price']))}}
@endforeach @if(count($vendorData->products)==1)
@endif @if(count($vendorData->products)==2)
@endif
@endif
@endif @endforeach
@if(isset($bannerTypeFooterBanner[1])) @endif