@if ($attributes->has(['megamenu']))
  • {{ $attributes->get('megamenu')['text'] ?? null }}
    @foreach ($attributes->get('megamenu')['items'] ?? [] as $key => $items) @php $tiene_items = false; foreach ($items as $I) { if( ($I['gate'] ?? null) && Gate::has($I['gate']) && Gate::denies($I['gate']) ){ continue; } $tiene_items = true; break; } if(!$tiene_items) continue; @endphp
    • {{ __($key ?? null) }}
    • @foreach ($items as $item) @php if( ($item['gate'] ?? null) && Gate::has($item['gate']) && Gate::denies($item['gate']) ){ continue; } @endphp
    • {{ __($item['text'] ?? null) }} @if ($item['badge'] ?? null)
      {{ $item['badge'] }}
      @endif
    • @endforeach
    @endforeach
  • @endif {{--
  • 4 Settings
    Overview
    Dropdown menus for everyone
    Key Figures
  • Projects
    Overview
    Unlimited options
  • --}}