@extends('frontend.layout') @section('pageHeading') {{ !empty($pageHeading) ? $pageHeading->vendor_page_title : __('Vendors') }} @endsection @section('metaKeywords') @if (!empty($seoInfo)) {{ $seoInfo->meta_keywords_vendor_page }} @endif @endsection @section('metaDescription') @if (!empty($seoInfo)) {{ $seoInfo->meta_description_vendor_page }} @endif @endsection @section('content') @includeIf('frontend.partials.breadcrumb', [ 'breadcrumb' => $bgImg->breadcrumb, 'title' => !empty($pageHeading) ? $pageHeading->vendor_page_title : __('Vendors'), ])
@if (count($vendors) + ($admin ? 1 : 0) > 0)

{{ count($vendors) + ($admin ? 1 : 0) }} {{ count($vendors) + ($admin ? 1 : 0) > 1 ? __('Vendors') : __('Vendor') }} {{ __('Found') }}

@endif
@if (count($vendors) + ($admin ? 1 : 0) == 0)

{{ __('NO VENDOR FOUND') . '!' }}

@else @if ($admin)
{{ $admin->username }}
@php $total_listings = App\Models\Listing\Listing::where('vendor_id', 0)->get()->count(); @endphp {{ __('Total Listings') . ':' }}  {{ $total_listings }}
    @if ($admin->address != null)
  • {{ $admin->address }}
  • @endif @if ($admin->show_phone_number == 1) @if (!is_null($admin->phone))
  • {{ $admin->phone }}
  • @endif @endif @if ($admin->show_email_address == 1)
  • {{ $admin->email }}
  • @endif
@endif @foreach ($vendors as $vendor)
{{ $vendor->username }}
@php $vendor_info = App\Models\VendorInfo::where([ ['vendor_id', $vendor->vendorId], ['language_id', $language->id], ]) ->select('name') ->first(); @endphp {{ @$vendor_info->name }}
@php $total_listings = App\Models\Listing\Listing::where('vendor_id', $vendor->vendorId) ->get() ->count(); @endphp {{ __('Total Listings') . ':' }}  {{ $total_listings }}
    @php $vendorInfo = App\Models\VendorInfo::where([ ['vendor_id', $vendor->vendorId], ['language_id', $language->id], ])->first(); @endphp @if ($vendorInfo) @if ($vendorInfo->address != null)
  • {{ $vendorInfo->address }}
  • @endif @endif @if ($vendor->show_phone_number == 1) @if (!is_null($vendor->phone))
  • {{ $vendor->phone }}
  • @endif @endif @if ($vendor->show_email_addresss == 1)
  • {{ $vendor->email }}
  • @endif
@endforeach @endif
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@endsection