<div class="menu-holder cs-scroll mCustomScrollbar">
    <ul>
    <?php foreach ($this->menus as $menu) { ?>
        <li>
            <a href="javascript:void(0)">
                <i class="icon-menu-ic-1"></i> <?php echo $menu['modulename']; ?>
            </a>
            <?php if ($menu['showsubmenu']) { ?>
                <div class="sub-menu">
                <?php foreach($menu['submenu'] as $submenu) { ?>
                <h5><?php echo $submenu->getURL(); ?></h5>
                <?php if ($submenu->getSubmenu() !== null) { ?>
                <ul>
                    <?php $subSubmenu = $submenu->getSubmenu()->getItems($this->user); ?>
                    <?php foreach($subSubmenu as $subSubMenuItem) { ?>
                    <li><?php echo $subSubMenuItem->getURL();?></li>
                    <?php } ?>
                </ul>
                <?php } ?>
                <?php } ?>
                </div>
            <?php } ?>
        </li>
    <?php } ?>
    <li style="height:60px"></li>
    </ul>
</div>