@php /** * @var \Botble\Marketplace\Models\Store $store * @var \Illuminate\Pagination\LengthAwarePaginator $products * @var \Botble\Marketplace\Forms\ContactStoreForm|null $contactForm * * Farmart-style layout: left sidebar (categories filter + contact form), * right column (about content + search + product toolbar + product grid). */ use Botble\Base\Facades\BaseHelper; $sendMessageAuth = auth('customer')->user(); $sendMessageEnabled = \Botble\Marketplace\Facades\MarketplaceHelper::isEnabledMessagingSystem() && isset($contactForm) && $contactForm && (! $sendMessageAuth || $store->id != $sendMessageAuth->store?->id); $hasAbout = ! empty(trim((string) $store->description)) || ! empty(trim((string) $store->content)); $searchTerm = (string) request()->input('q', ''); Theme::set('renderingStore', true); Theme::layout('full-width'); @endphp @if (is_plugin_active('marketplace'))
@include(Theme::getThemeNamespace('views.marketplace.includes.store-banner'), ['store' => $store])
{{-- Left sidebar: categories filter + contact form ----------- --}}
@include(Theme::getThemeNamespace('views.marketplace.includes.store-products-filter'), ['store' => $store]) @if ($sendMessageEnabled) @include(Theme::getThemeNamespace('views.marketplace.includes.store-send-message'), [ 'store' => $store, 'contactForm' => $contactForm, ]) @endif
{{-- Main column: about + search + toolbar + product grid ----- --}}
@if ($hasAbout) @include(Theme::getThemeNamespace('views.marketplace.includes.store-about'), ['store' => $store]) @endif @if (isset($products) && (is_countable($products) ? count($products) : 0) > 0)
@include(Theme::getThemeNamespace('views.ecommerce.includes.product-filters-top'), [ 'filterPosition' => 'sidebar', ])
@include(EcommerceHelper::viewPath('includes.product-items'), ['products' => $products])
@if ($products instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator && $products->hasPages())
{{ $products->withQueryString()->links() }}
@endif @else

{{ __('This vendor has no products yet.') }}

@endif
@endif