@include('menu.menuItem.modal.addMenuItemModal')
@foreach ($menuItems as $menuItem)
@if ($menuItem->type == 'divider')
-
Divider: {{ $menuItem?->menu_item_name }}
@else
@if (empty($menuItem?->parent_id) && !empty($menuItem?->url) && $menuItem?->type === 'menu_item')
-
Menu: {{ $menuItem?->menu_item_name }}
@else
@if (empty($menuItem?->parent_id) && empty($menuItem?->url) && $menuItem?->type === 'menu_item')
-
Parent: {{ $menuItem?->menu_item_name }}
@foreach ($childDatas as $childData)
@if ($menuItem?->menu_item_id == $childData?->parent_id && $menuItem?->type === 'menu_item')
@if (!empty($childData?->parent_id) && !empty($childData?->url) && $childData?->type === 'menu_item')
-
Child:
{{ $childData?->menu_item_name }}
@else
@if (!empty($childData?->parent_id) && empty($childData?->url) && $childData?->type === 'menu_item')
-
Child:
{{ $childData?->menu_item_name }}
@foreach ($grandChildDatas as $grandChildData)
@if ($childData?->menu_item_id == $grandChildData?->parent_id && $childData?->type === 'menu_item')
-
Grand
Child:
{{ $grandChildData?->menu_item_name }}
@endif
@endforeach
@endif
@endif
@endif
@endforeach
@else
@endif
@endif
@endif
@endforeach