@php $headerTwo = App\Models\Frontend::where('data_keys', 'header_two.content')->first()?->data_values; $headerTwoKeys = array_keys((array) $headerTwo->group); $firstLetters = array_map(function ($key) { return $key[0]; }, $headerTwoKeys); $headerTwoLayoutClass = 'middle-menu-' . implode('', $firstLetters); @endphp @if (@$headerTwo->status == 'on')
@foreach ($headerTwo->group as $key => $group) @if ($key == 'logo_widget' && isset($group->status) && $group->status == 'on') @endif @if ($key == 'search_widget' && isset($group->status) && $group->status == 'on')
@endif @if ($key == 'widgets') @php $widgets = collect($group)->where('status', 'on'); @endphp @if ($widgets->count())
    @foreach ($widgets as $widget) @if (gs('product_compare') && $widget->key == 'compare' && @$widget->status == 'on')
  • @lang('Compare')
  • @endif @if (gs('product_wishlist') && $widget->key == 'wishlist' && @$widget->status == 'on')
  • @lang('Wishlist')
  • @endif @if ($widget->key == 'cart' && @$widget->status == 'on')
  • @lang('Cart')
  • @endif @if ($widget->key == 'notifications' && @$widget->status == 'on') @auth
  • @endauth @endif @if ($widget->key == 'user_auth' && @$widget->status == 'on')
  • @include('Template::partials.user_auth_options')
  • @endif @if ($widget->key == 'language' && @$widget->status == 'on')
  • @include($activeTemplate . 'partials.menu.language_menu')
  • @endif @endforeach
@endif @endif @endforeach
@endif