@foreach ($menuStructured as $menuItem) @php foreach ($menuItem->children as $colMenu) { $hasChildren = 0; if (!empty($colMenu->children)) { $hasChildren = 1; break; } } @endphp @if($menuItem->bigMenu)

{{ $menuItem->title }}

@if(!empty($menuItem->children)) @foreach($menuItem->children as $colMenu)
@if($colMenu->url === '#') {{ $colMenu->title }} @if (!empty($colMenu->children)) @include('frontend.svg.icon-arrow-right') @else @include('frontend.svg.icon-arrow-down-right') @endif @else target ? "target='{$colMenu->target}'" : '' !!} class="tm-level1-menu-item" > {{ $colMenu->title }} @if (!empty($colMenu->children)) @include('frontend.svg.icon-arrow-right') @else @include('frontend.svg.icon-arrow-down-right') @endif @endif
    @php $lastItem = null; @endphp @foreach($colMenu->children as $colItem)
  • target ? "target='{$colItem->target}'" : '' !!} class="menu-drawer__menu-item tm-level2-menu-item" > {{ $colItem->title }}
  • @php $lastItem = $colItem; @endphp @endforeach
{{-- @if($lastItem && !empty($lastItem->children)) @php $colCta = $lastItem->children[0]; @endphp
target ? "target='{$colCta->target}'" : '' !!} class="tm-level3-menu-item" > {{ $colCta->title }}
@endif --}}
@endforeach @endif
@endif @endforeach
@foreach ($menuStructured as $menuItem) @php foreach ($menuItem->children as $colMenu) { $hasChildren = 0; if (!empty($colMenu->children)) { $hasChildren = 1; break; } } @endphp @if($menuItem->bigMenu)
@if(!empty($menuItem->bigMenu->highlight_title1)) @include('frontend.components.menu-cta', ['bigMenu' => $menuItem->bigMenu, 'ctaIndex' => 1]) @endif @if(!empty($menuItem->bigMenu->highlight_title2)) @include('frontend.components.menu-cta', ['bigMenu' => $menuItem->bigMenu, 'ctaIndex' => 2]) @endif
@endif @endforeach
@foreach ($menuStructured as $menuItem) @if($menuItem->bigMenu)
@if($menuItem->bigMenu->bannerImage) {{ htmlentities($menuItem->bigMenu->banner_label) }} @endif
{{ $menuItem->bigMenu->banner_label }}
@if($menuItem->bigMenu->banner_cta) {!! generateLink($menuItem->bigMenu->banner_cta, 'menu-drawer__banner-cta link-left-arrow link-animation-arrow tm-menu-banner') !!} @endif
@endif @endforeach