@php /** * @name Menu\Autenticato * @version 1.0.0 */ @endphp @php $wrap_el = 'ul'; $item_el = 'li'; $type = 'list'; if(!empty($attributes['type'])){ if($attributes['type'] == 'div'){ $wrap_el = 'div'; $item_el = 'div'; } } if(empty($collapse)){ $collapse = false; } $wrap_class = ['menu-pages']; if(!empty($attributes['class'])){ $wrap_class_custom = $attributes['class']; if(!is_array($wrap_class_custom)){ $wrap_class_custom = explode(' ', $wrap_class_custom); } $wrap_class = array_merge($wrap_class, $wrap_class_custom); } @endphp <{{$wrap_el}} id="menu-page-{{$menu->get_id()}}" class="{!! implode(' ', $wrap_class)!!}"> @foreach ($menu->get_items() as $item) @get_template_part('components.menu.item', null, ['menu' => $menu, 'attributes' => $attributes, 'current_language' => $current_language, 'wrap_el' => $wrap_el, 'item_el' => $item_el, 'item' => $item, 'collapse' => $collapse]) @endforeach