<?php
$login = new Login();
?>
<header class="main-header">
    <!-- Logo -->
    <a href="Home.php" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>JML</b></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>JML</b></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">
                <img src="<?php echo ROOT_HOST?>/public/app/img/logo.jpg" class="user-image" alt="User Image">
                <span class="hidden-xs"><?php echo $login->getNombreCompleto() ?></span>
              </a>
              <ul class="dropdown-menu">
                <!-- User image -->
                <li class="user-header">
                  <img src="<?php echo ROOT_HOST?>/public/app/img/logo.jpg" class="img-circle" alt="User Image">
                  <p><?php echo $login->getNombreCompleto(); ?></p>
                </li>
                <!-- Menu Footer-->
                <li class="user-footer">
                  <div class="pull-left">
                    <a href="#" class="btn btn-default btn-flat"><?php echo $_translator->_getTranslation('Perfil'); ?></a>
                  </div>
                  <div class="pull-right">
                    <a href="<?php echo ROOT_HOST;?>/class/Login/Logout.php" class="btn btn-default btn-flat"><?php echo $_translator->_getTranslation('Salir'); ?></a>
                  </div>
                </li>
              </ul>
            </li>
           
            <!-- Control Sidebar Toggle Button -->
             <!--
            <li>
              <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
            </li>-->
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="<?php echo ROOT_HOST?>/public/app/img/logo.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
            <p><?php echo $login->getNombreCompleto() ?></p>
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header text-uppercase"><?php echo $_translator->_getTranslation('Navegacion'); ?></li>
        <li><a href="Home.php"><i class="fa fa-dashboard"></i> <span><?php echo $_translator->_getTranslation('Inicio') ?></span></a></li>
        <li><a href="Compra.php"><i class="fa fa-shopping-basket "></i> <span><?php echo $_translator->_getTranslation('Compras'); ?></span></a></li>
        <li class="treeview">
            <a href="#">
                <i class="fa fa-dollar"></i> <span><?php echo $_translator->_getTranslation('Pagos') ?></span>
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
            </a>
            <ul class="treeview-menu">
                <li><a href="Pago.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Agregar nuevo'); ?></a></li>
                <li><a href="Pago.php?action=list"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Lista de pagos'); ?></a></li>  
            </ul>
        </li>
        <li><a href="Reportes.php"><i class="fa fa-bar-chart"></i> <span><?php echo $_translator->_getTranslation('Reportes') ?></span></a></li>
        <li><a href="Proveedor.php"><i class="fa fa-users "></i> <span><?php echo $_translator->_getTranslation('Proveedores'); ?></span></a></li>
        <li><a href="Usuario.php"><i class="fa fa-user-circle-o "></i> <span><?php echo $_translator->_getTranslation('Usuarios'); ?></span></a></li>
        <li><a href="Empresa.php"><i class="fa fa-building-o "></i> <span><?php echo $_translator->_getTranslation('Empresa'); ?></span></a></li>    
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>