@php $headerThreeKeys = array_keys((array) $headerThree->group); $firstLetters = array_map(function ($key) { return $key[0]; }, $headerThreeKeys); $layoutClass = 'primary-menu-' . implode('', $firstLetters); $headerColor = $headerThree?->background_color ?? gs('base_color'); @endphp @if (@$headerThree->status == 'on')
@foreach ($headerThree->group as $key => $group) @if ($key == 'category_widget' && isset($group->status) && $group->status == 'on')
@include('Template::partials.left_category_menu', ['limit' => null])
@elseif($key == 'links') @include('Template::partials.menu.site_menu', [ 'classes' => 'd-none d-lg-flex', ]) @endif @if ($key == 'widgets')
@foreach (collect($group)->where('status', 'on') as $widget) @if ($widget->key == 'cart')
@elseif($widget->key == 'wishlist' && gs('product_wishlist'))
background_color) style="background-color: {{ '#' . @$widget->background_color }} !important" @endif>
@elseif($widget->key == 'compare' && gs('product_compare'))
background_color) style="background-color: {{ '#' . @$widget->background_color }} !important" @endif> 0
@elseif($widget->key == 'user_auth')
background_color) style="background-color: {{ '#' . @$widget->background_color }} !important" @endif> @include('Template::partials.user_auth_options')
@elseif($widget->key == 'language')
background_color) style="background-color: {{ '#' . @$widget->background_color }} !important" @endif> @include($activeTemplate . 'partials.menu.language_menu')
@elseif($widget->key == 'notifications')
background_color) style="background-color: {{ '#' . @$widget->background_color }} !important" @endif>
@endif @endforeach
@endif @endforeach
@endif @push('style') @endpush