@using NetPanel.Entity;
   <!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="index3.html" class="brand-link">
        <img src="/AdminLTE/dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
        <span class="brand-text font-weight-light">AdminLTE 3</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">



        <!-- Sidebar Menu -->
        <nav class="mt-2">

            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false" id="menu_toggle">
                <!-- Add icons to the links using the .nav-icon class
                with font-awesome or any other icon font library -->

                @{ List<Menu> menuList = ViewBag.data;
                    foreach (Menu menu in menuList)
                    {
        <li class="nav-item">
            <a href="#" class="nav-link ">
                <i class="@menu.Icon"></i>
                <p>
                    @menu.MenuName
                    <i class="right fas fa-angle-left"></i>
                </p>
            </a>
            <ul class="nav nav-treeview submenu" style="display: none;">
                @foreach (Menu secondMenu in menu.Child)
                {
                    <li class="nav-item">
                        <a href="#" data-Url="@secondMenu.Url" data-Txt="@menu.MenuName > @secondMenu.MenuName" class="nav-link menu">
                            @*<i class="far fa-circle nav-icon"></i>*@
                            <p>@secondMenu.MenuName</p>
                        </a>
                    </li>
                }
            </ul>
        </li>
                } }
            </ul>

        </nav>
        <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
</aside>