<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="Home.php">MG POS</a>
    </div>
    <!-- Top Menu Items -->
    <ul class="nav navbar-right top-nav">
        <?php $login = new Login();?>
        <li class="dropdown">
            <a class="dropdown" style='text-transform: lowercase'><i class="fa fa-fw fa-map-marker"></i> Sucursal - <?php echo $login->getSucursalNombre()?></a>
        </li>
        </li>
        <li class="dropdown">
            <?php $login = new Login();?>
            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i>  <?php echo $login->getNombreCompleto();?> <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <?php if($login->getCajaNombre() !== '' && $login->getCajaNombre() !== null){?>
                    <li>
                        <a href="#"><i class="fa fa-fw fa-laptop"></i><?php echo $login->getCajaNombre();?></a>
                    </li>
                    <li class="divider"></li>
                <?php } ?> 
                <li>
                    <a href="<?php echo ROOT_HOST;?>/class/Login/Logout.php"><i class="fa fa-fw fa-power-off"></i> Log Out</a>
                </li>
            </ul>
        </li>
    </ul>
    <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
    <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav side-nav">            
            <li>
                <a href="/Controller/Home.php"><i class="fa fa-fw fa-home"></i> Inicio</a>
            </li>
            <li>
                <a href="/Controller/Pos.php"><i class="fa fa-fw fa-desktop"></i> POS</a>
            </li>           
            <li>
                <a href="Register.php"><i class="fa fa-fw fa-unlock-alt"></i> <?php echo $_translator->_getTranslation('Abrir/Cerrar Cajas')?></a>
            </li>           
    </div>
    <!-- /.navbar-collapse -->
</nav>