@php /** * @var \Illuminate\Pagination\LengthAwarePaginator $stores */ $searchTerm = (string) request()->input('q', ''); $sort = (string) request()->input('sort', 'latest'); $sortChoices = [ 'latest' => __('Latest'), 'oldest' => __('Oldest'), 'name_asc' => __('Name (A-Z)'), 'name_desc' => __('Name (Z-A)'), ]; $totalLabel = ''; if ($stores instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator) { $total = $stores->total(); $totalLabel = $total === 1 ? __('Found 1 vendor') : __('Found :count vendors', ['count' => number_format($total)]); } // The amerce default page-title section already prints the SEO title centered. // Keep it — it acts as our hero. Suppress only the redundant "All Vendors" // subtitle to avoid double headings. @endphp @if (is_plugin_active('marketplace'))
@include(Theme::getThemeNamespace('views.marketplace.stores.items'), ['stores' => $stores])
@if ($stores instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator && $stores->hasPages())
{{ $stores->withQueryString()->links() }}
@endif
@endif