@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' => 8, ]); } // Newline-delimited announcement strip below the header bar (demo `tf-btn-swiper-main // swip-text`, html/home-cosmetic.html lines 1320-1359). Empty option = no strip. $announcementSlides = array_values(array_filter(array_map( 'trim', preg_split('/\r?\n/', (string) theme_option('header_announcement_slides', '')) ))); @endphp {{-- Header Style 13 — Transparent overlay variant: logo + category dropdown left, main-menu center, inline search + icons right (header-abs). --}}
{{ 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-3 main-action-active d-none d-xxl-block', 'btnIconClass' => '', 'nameClass' => 'name-category fw-medium lh-24', ])
@include(Theme::getThemeNamespace('partials.header.search-form'), ['formClasses' => 'form-search-nav style-3 d-none d-xl-block']) @include(Theme::getThemeNamespace('partials.header.ecommerce-action-buttons'), ['inlineSearchAtXl' => true])
@if (! empty($announcementSlides))
@foreach ($announcementSlides as $slide)

{!! BaseHelper::clean($slide) !!}

@endforeach
@endif