<#list menuList as menu>
<#if menu.sonMenu?size gt 0 >
    <#if (activeMenu.superMenu??)&&(menu.id==activeMenu.superMenu.id)>
        <li class="nav-item nav-item-has-subnav active open" >
            <a href="javascript:void(0)">
    <#else>
        <li class="nav-item nav-item-has-subnav">
        <a href="javascript:void(0)">
    </#if>
 <#else>
    <#if menu.id==activeMenu.id>
        <li class="nav-item active">
    <#else>
        <li class="nav-item">
    </#if>
    <a href="${ctx}${menu.url!}?menu_id=${menu.id!}">
</#if>
     <i class="mdi ${menu.icon!}"></i> ${menu.name}
    </a>
    <#if menu.sonMenu?size gt 0>
    <ul class="nav nav-subnav">
        <#list menu.sonMenu as menu2>
        <#if menu2.id==activeMenu.id>
            <li class="active"> <a href="${ctx}${menu2.url!}?menu_id=${menu2.id!}">${menu2.name}</a> </li>
        <#else>
            <li> <a href="${ctx}${menu2.url!}?menu_id=${menu2.id!}">${menu2.name}</a> </li>
        </#if>
        </#list>
    </ul>
    </#if>
</li>
</#list>




