<!--
    ASIDE
    Keep it outside of #wrapper (responsive purpose)
-->
<aside id="aside">
    <!--
        Always open:
        <li class="active alays-open">

        LABELS:
            <span class="label label-danger pull-right">1</span>
            <span class="label label-default pull-right">1</span>
            <span class="label label-warning pull-right">1</span>
            <span class="label label-success pull-right">1</span>
            <span class="label label-info pull-right">1</span>
    -->
    <nav id="sideNav"><!-- MAIN MENU -->
        <ul class="nav nav-list">
            <?php foreach(@$lists as $key =>$value){ ?>
                <li class="<?php echo $value->id==@$active?"active":""?>">
                    <a href="#">
                        <i class="fa fa-menu-arrow pull-right"></i>
                        <i class="main-icon fa <?php echo $value->icon ?>"></i> <span><?php echo $value->name_en ?></span>
                    </a>
                    <ul><!-- submenus -->
                        <li class="<?php echo @$active_sub=="lists"?"active":""?>"><a href="<?php echo base_url().$value->url ?>/lists"><?php echo $value->name_en ?> List</a></li>
                        <li class="<?php echo @$active_sub=="form"?"active":""?>"><a href="<?php echo base_url().$value->url ?>/form"><?php echo $value->name_en ?> Add New</a></li>
                    </ul>
                </li>
            <?php } ?>
        </ul>
    </nav>

    <span id="asidebg"><!-- aside fixed background --></span>
</aside>
<!-- /ASIDE -->


<!-- HEADER -->
<header id="header">

    <!-- Mobile Button -->
    <button id="mobileMenuBtn"></button>

    <!-- Logo -->
    <span class="logo pull-left">
					<img src="<?php echo base_url()?>assets/images/logo_light.png" alt="admin panel" height="35" />
				</span>

    <form method="get" action="page-search.html" class="search pull-left hidden-xs">
        <input type="text" class="form-control" name="k" placeholder="Search for something..." />
    </form>

    <nav>

        <!-- OPTIONS LIST -->
        <ul class="nav pull-right">

            <!-- LANG BAR --->
<!--            --><?php //echo Modules::run('menuadmin/lang',@$user->user_langid);?>
            <!-- /LANG BAR --->



            <!-- USER OPTIONS -->
            <li class="dropdown pull-left">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                    <img class="user-avatar" alt="" src="<?php echo base_url()?>assets/images/noavatar.jpg" height="34" />
                    <span class="user-name">
									<span class="hidden-xs">
										<?php echo @$user->fname." ".@$user->lname ?> <i class="fa fa-angle-down"></i>
									</span>
								</span>
                </a>
                <ul class="dropdown-menu hold-on-click">
                    <li><!-- logout -->
                        <a href="<?php echo base_url()?>login/logout"><i class="fa fa-power-off"></i> Log Out</a>
                    </li>
                </ul>
            </li>
            <!-- /USER OPTIONS -->

        </ul>
        <!-- /OPTIONS LIST -->

    </nav>

</header>
<!-- /HEADER -->