@php use Botble\Base\Facades\BaseHelper; /** * Header Style 8 — mirrors html/home-baby.html `tf-header header-s6 has-by-category` * (lines 50-1475). * TOP row (header-inner): logo + inline main-menu nav LEFT, currency/language * switchers RIGHT (mobile: nav-icon-list). * BOTTOM row (header-bottom): Browse-by-Category dropdown LEFT, search form CENTER, * account / wishlist / cart icons RIGHT. */ $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
{{ Theme::getLogoImage(['class' => 'logo-light'], 'logo', 30) }}
@if ((bool) theme_option('header_show_currency_language', true))
@include(Theme::getThemeNamespace('partials.currency-switcher'))
@include(Theme::getThemeNamespace('partials.language-switcher'))
@endif
@include(Theme::getThemeNamespace('partials.header.browse-by-category'), [ 'categories' => $headerCategories, 'listClass' => 'box-nav-category active-item radius-12', 'showCaretDown' => false, ])
$hasEcommerceSearch]) @if ($hasEcommerceSearch) data-ajax-url="{{ $ajaxSearchUrl }}" @endif > @if ($hasEcommerceSearch)
@endif @if ($hasEcommerceSearch)
@endif