@if (get_setting('vendor_system_activation') == 1) @php $array = array(); foreach (\App\Seller::where('verification_status', 1)->get() as $key => $seller) { if($seller->user != null && $seller->user->shop != null){ $total_sale = 0; foreach ($seller->user->products as $key => $product) { $total_sale += $product->num_of_sale; } $array[$seller->id] = $total_sale; } } asort($array); @endphp @if(!empty($array))

{{ translate('Best Sellers')}}

{{ translate('View All Sellers') }}
@endif @endif