@php
if($menusCount>0) {
foreach ($menus as $data) {
$thisRef = &$ref[$data->id];
$thisRef['parent'] = $data->parent;
$thisRef['label'] = $data->label;
$thisRef['link'] = $data->link;
$thisRef['route'] = $data->route;
$thisRef['icon'] = $data->icon;
$thisRef['id'] = $data->id;
if($data->parent == 0) {
$items[$data->id] = &$thisRef;
} else {
$ref[$data->parent]['child'][$data->id] = &$thisRef;
}
}
function get_menu($items,$class = 'dd-list') {
$html = '";
return $html;
}
print get_menu($items);
}
@endphp