<header class="main-header">
    <!-- Logo -->
    <a href="<?=$path['dashboard'];?>" class="logo hidden-xs">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <!-- <span class="logo-mini">WHS</span> -->
        <span class="logo-mini">
            <img src="<?=$global['absolute-url'].'img/logo/rms-icon.png';?>" alt="logo">
        </span>
        <!-- logo for regular state and mobile devices -->
        <!-- <span class="logo-lg"><b>Warehouse</b></span> -->
        <span class="logo-lg">
            <img src="<?=$global['absolute-url'].'img/logo/rms-icon.png';?>" alt="logo">
        </span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <!-- User Account: style can be found in dropdown.less -->
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <?php if($_SESSION['admin_img'] != ""){ ?>
                        <img src="<?=$global['absolute-url'].$_SESSION['admin_img'];?>" class="user-image" alt="User Image">
                        <?php } else { ?>
                        <img src="<?=$global['absolute-url'].'img/dummy.jpg';?>" class="user-image" alt="User Image">
                        <?php } ?>
                        <span class="hidden-xs"><?=$_SESSION['admin_username'];?></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header">
                            <?php if($_SESSION['admin_img'] != ""){ ?>
                            <img src="<?=$global['absolute-url'].$_SESSION['admin_img'];?>" class="img-circle" alt="User Image">
                            <?php } else { ?>
                            <img src="<?=$global['absolute-url'].'img/dummy.jpg';?>" class="img-circle" alt="User Image">
                            <?php } ?>
                            <p>
                            <?=$_SESSION['admin_username'];?>
                            </p>
                        </li>
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left">
                                <a href="<?=$path['admin-edit'].$_SESSION['admin_id'];?>" class="btn btn-default btn-flat">Edit Profile</a>
                            </div>
                            <div class="pull-right">
                                <a href="<?=$path['logout'];?>" class="btn btn-default btn-flat">Sign out</a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>