@if (\Session::has('erro'))
- {!! \Session::get('erro') !!}
@endif
@php
$cabecalho = [];
$rodape = [];
@endphp
@if ($portal->template == 'prefeitura4')
@php
$contr = 0;
$contc = 0;
foreach ($menuItems as $menuItem) {
if ($menuItem->menu_rodape == 1) {
$rodape[$contr++] = $menuItem;
} else {
$cabecalho[$contc++] = $menuItem;
}
}
@endphp
@else
@php
$cabecalho = $menuItems;
@endphp
@endif
@foreach ($cabecalho as $menuItem)
@if ($menuItem->parent_id == null)
@endif
@endforeach
@if ($portal->template == 'prefeitura4')
@foreach ($rodape as $menuItem)
@endforeach
@endif