@php use Botble\Base\Facades\BaseHelper; $headerCategories = collect(); if (is_plugin_active('ecommerce')) { $headerCategories = app(\Botble\Ecommerce\Repositories\Interfaces\ProductCategoryInterface::class) ->advancedGet([ 'condition' => ['parent_id' => 0, 'status' => 'published'], 'with' => ['slugable', 'activeChildren', 'activeChildren.activeChildren'], 'take' => 10, ]); } $hasEcommerceSearch = is_plugin_active('ecommerce') && \Illuminate\Support\Facades\Route::has('public.products') && \Illuminate\Support\Facades\Route::has('public.ajax.search-products'); $searchAction = $hasEcommerceSearch ? route('public.products') : url('/search'); $ajaxSearchUrl = $hasEcommerceSearch ? route('public.ajax.search-products') : null; @endphp {{-- Header Style 10 — Furniture boutique (header-s8 has-by-category): logo + category browser + inline search left, icons right; main-menu in bottom bar with offer text right. --}}
{{ Theme::getLogoImage(['class' => 'logo-light'], 'logo', 30) }} {{ Theme::getLogoImage(['class' => 'logo-dark'], 'logo_dark', 30) }}
@include(Theme::getThemeNamespace('partials.header.browse-by-category'), [ 'categories' => $headerCategories, 'wrapClass' => 'nav-category-wrap style-4 main-action-active d-none d-xl-block', 'btnIconClass' => '', 'nameClass' => 'name-category fw-medium lh-24', ])
$hasEcommerceSearch]) @if ($hasEcommerceSearch) data-ajax-url="{{ $ajaxSearchUrl }}" @endif > @if ($hasEcommerceSearch)
@endif
@include(Theme::getThemeNamespace('partials.header.ecommerce-action-buttons'), ['inlineSearchAtXl' => true])
@php $offersText = theme_option('header_special_offers_text', __('Special Offers!')); $offersUrl = theme_option('header_special_offers_url'); @endphp @if ($offersUrl) {{ $offersText }} @else

{{ $offersText }}

@endif