@if ($depth == 1) @foreach ($all_navigation_tabs as $nth => $navigation_tab)
  • @if ($navigation_tab['order'] == 5) @else @endif @if ($nth == 0) {{-- --}} @endif   {{ $navigation_tab['title'] }} @if (count($navigation_tab['children']) != 0) @endif @if (count($navigation_tab['children']) != 0) @if ( !$navigation_tab['actual_component']['tab_style'] || $navigation_tab['actual_component']->isEnumValue('tab_style', 'singular')) @elseif ($navigation_tab['actual_component']->isEnumValue('tab_style', 'half'))
    @include('navigation.tab', [ 'children' => $navigation_tab['children'], 'depth' => $depth + 1, 'as_context' => 'half', ])
    @elseif ($navigation_tab['actual_component']->isEnumValue('tab_style', 'full'))
    @include('navigation.tab', [ 'children' => $navigation_tab['children'], 'depth' => $depth + 1, 'as_context' => 'full', ])
    @endif @endif
  • @endforeach @else @if ($as_context == 'singular') @foreach ($children as $child) @if (isset($child['image']) && $child['image'])

    {{ $child['title'] }}

    Banner
    @else
  • {{ $child['title'] }} @if (count($child['children']) > 0) @endif
  • @endif @endforeach @elseif ($as_context == 'half') @foreach ($children as $child) @endforeach @elseif ($as_context == 'full') @foreach ($children as $k => $child) @if (isset($child['image']) && $child['image'])
    @include('navigation.tab', [ 'children' => [$child], 'depth' => $depth + 1, 'as_context' => 'singular', ])
    @else @endif @endforeach @endif @endif