@php($pages = pages_by_location('main-menu'))
@if(count($pages))
@foreach($pages as $page)
@if($page->childrenCached()->isNotEmpty())
@includeIf(Theme::moduleView('pageplus', 'elements.components.children-dropdown'), ['parent'=> $page, 'pages' => $page->childrenCached()])
@else
{!! $page->getMeta('icon') !!}
{{ $page->getTranslation()->title }}
@endif
@endforeach
@endif