@if($merchants->count() > 0)
@foreach($merchants as $merchant) @php $merchantName = $merchant->getTranslation('company_name', app()->getLocale()) ?: $merchant->getTranslation('company_name', 'en') ?: $merchant->name; @endphp
@php $rating = $merchant->rate ?? 0; @endphp @if($rating > 0)
{{ $rating }}
@endif
{{ $merchantName }} @if($merchant->is_verified) @endif

@php $description = $merchant->description; if (is_array($description)) { $description = $merchant->getTranslation('description', app()->getLocale()); } @endphp {{ \Illuminate\Support\Str::limit($description ?? __('ecommerce::ecommerce.no_description'), 50) }}

{{ $merchant->items_count ?? $merchant->items()->count() }} @lang('ecommerce::ecommerce.sales')
{{ $merchant->sales_count ?? 0 }} @lang('ecommerce::ecommerce.sales')
@if($merchant->phone)
{{ $merchant->phone }}
@endif @if($merchant->email)
{{ $merchant->email }}
@endif
@endforeach
@if($merchants->hasPages())
{{ $merchants->links('pagination::bootstrap-4') }}
@endif @else
@lang('ecommerce::ecommerce.products.no_results')
@endif