@extends('frontend.layout') @section('pageHeading') @if (!empty($pageHeading)) {{ $pageHeading->vendor_page_title }} @endif @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' => $pageHeading ? $pageHeading->vendor_page_title : '', ])
@if (count($vendors) > 0)
@php $vendorIds = []; @endphp @foreach ($vendors as $item) @if (!in_array($item->id, $vendorIds))
@if ($item->photo != null) Author @else Author @endif
{{ $item->shop_name }}
{{ $item->username }}
@php $avg_rating = App\Models\Instrument\EquipmentReview::where('vendor_id', $item->id)->avg('rating'); $review_count = App\Models\Instrument\EquipmentReview::where('vendor_id', $item->id)->count(); @endphp
( {{ $review_count }} @if ($review_count <= 1) {{ __('Rating') }} @else {{ __('Ratings') }} @endif )
@php $equipment_count = App\Models\Instrument\Equipment::where('vendor_id', $item->id)->count(); @endphp {{ $equipment_count }} @if ($equipment_count <= 1) {{ __('Item') }} @else {{ __('Items') }} @endif
{{ __('View Profile') }}
@php array_push($vendorIds, $item->id); @endphp @endif @endforeach
{{ $vendors->links() }} @else

{{ __('No Vendor Found') . '!' }}

@endif
{!! showAd(3) !!}
@endsection