@if (count($menus) > 0)
@endif
{{ translate('Select a menu') }}
{{ translate('Add Menu Item') }}
@foreach ($categories as $category)
@endforeach
@foreach ($pages as $page)
@endforeach
@foreach ($blogs as $blog)
@endforeach
{{ translate('Menu Structure') }}
{{ translate('add') }} {{ translate('Categories') }},{{ translate('Pages') }},{{ translate('Blogs') }} {{ translate('or') }} {{ translate('Custom Link') }} {{ translate('to the menu') }}
-
@if (!empty($itemsWithChildrens))
@foreach ($itemsWithChildrens as $item)
-
@if ($item->menu_type == 'page') {{ $item?->page?->getTranslation('page_name') }} ({{ translate("$item->menu_type") }}) @elseif ($item->menu_type == 'category') {{ $item->category->getTranslation('category_name') }} ({{ translate("$item->menu_type") }}) @elseif ($item->menu_type == 'blog') {{ $item?->blog?->getTranslation('blog_title') }} ({{ translate("$item->menu_type") }}) @else {{ $item->getTranslation('title') }} ({{ translate("$item->menu_type") }}) @endif@if ($item->childrens->count() > 0)
-
@foreach ($item->childrens as $childItem)
-
@if ($childItem->menu_type == 'page') {{ $childItem?->page?->getTranslation('page_name') }} ({{ translate("$childItem->menu_type") }}) @elseif ($childItem->menu_type == 'category') {{ $childItem->category->getTranslation('category_name') }} ({{ translate("$childItem->menu_type") }}) @elseif ($childItem->menu_type == 'blog') {{ $childItem?->blog?->getTranslation('blog_title') }} ({{ translate("$childItem->menu_type") }}) @else {{ $childItem->getTranslation('title') }} ({{ translate("$childItem->menu_type") }}) @endif@if ($childItem->childrens->count() > 0)
-
@foreach ($childItem->childrens as $child)
-
@if ($child->menu_type == 'page') {{ $child?->page?->getTranslation('page_name') }} ({{ translate("$child->menu_type") }}) @elseif ($child->menu_type == 'category') {{ $child->category->getTranslation('category_name') }} ({{ translate("$child->menu_type") }}) @elseif ($child->menu_type == 'blog') {{ $child?->blog?->getTranslation('blog_title') }} ({{ translate("$child->menu_type") }}) @else {{ $child->getTranslation('title') }} ({{ translate("$child->menu_type") }}) @endif
@endforeach
@endforeach
-
@endforeach
@endif
-