@if ($showEmpty || $products->count() > 0)

{{ $title ?? __('Popular Nearby Products') }}

{{ $subtitle ?? __('Products') }}

{{-- view all button --}} @if ($products->hasMorePages()) @php $link = route('glover-website.search', [ 'vendor_type_id' => $vendor_type_id, 'sort' => 'newest', 'type' => 'product', ]); @endphp
{{ __('View All') }} @if (isRTL()) @else @endif
@endif
@php $isGroceryVendorType = $vendor_type->slug == 'grocery'; @endphp @if ($isGroceryVendorType)
@foreach ($products as $product) @include( 'livewire.extensions.glover-website.components.list.grocery-product-v-card', [ 'product' => $product, ] ) @endforeach
@else
@foreach ($products as $product) @include('livewire.extensions.glover-website.components.list.product-card', [ 'product' => $product, ]) @endforeach
@endif
@endif