@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'))
@elseif ($navigation_tab['actual_component']->isEnumValue('tab_style', 'full'))
@endif
@endif
@endforeach
@else
@if ($as_context == 'singular')
@foreach ($children as $child)
@if (isset($child['image']) && $child['image'])
{{ $child['title'] }}
@else
{{ $child['title'] }}
@if (count($child['children']) > 0)
@endif
@endif
@endforeach
@elseif ($as_context == 'half')
@foreach ($children as $child)
@if (strlen($child['title'] > 0))
- {{ $child['title'] }}
@endif
-
@if (count($child['children']) > 0)
@include('navigation.tab', [
'children' => $child['children'],
'depth' => $depth + 1,
'as_context' => 'singular',
])
@endif
@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
@if (strlen($child['title'] > 0))
- {{ $child['title'] }}
@endif
-
@if (count($child['children']) > 0)
@include('navigation.tab', [
'children' => $child['children'],
'depth' => $depth + 1,
'as_context' => 'singular',
])
@endif
@endif
@endforeach
@endif
@endif