
<div class="wrapper">

  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button">
          <i class="fas fa-bars"></i>
        </a>
      </li>
      <li class="nav-item">
         <a class="nav-link" href="#">
          <h4 class="text-default"><b>Enterprise Resource Planning - Pearl Hotel</b></h4>
         </a>
      </li>
    </ul>

    <ul class="navbar-nav ml-auto">
      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <!-- <i class="far fa-comments"></i> -->
          <i class="fas fa-hand-holding-usd"></i>
          <span class="badge badge-success navbar-badge">350 000</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <!-- <div class="media">
              <img src="dist/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Brad Diesel
                  <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">Call me whenever you can...</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div> -->
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <!-- <div class="media">
              <img src="dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  John Pierce
                  <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">I got your message bro</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div> -->
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <!-- <div class="media">
              <img src="dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Nora Silvester
                  <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">The subject goes here</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div> -->
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">Toute l'etat actuel</a>
        </div>
      </li>
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-comments"></i>
          <span class="badge badge-danger navbar-badge">0</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <!-- <div class="media">
              <img src="dist/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Brad Diesel
                  <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">Call me whenever you can...</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div> -->
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <!-- <div class="media">
              <img src="dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  John Pierce
                  <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">I got your message bro</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div> -->
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <!-- <div class="media">
              <img src="dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Nora Silvester
                  <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">The subject goes here</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div> -->
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">Tous les Messages</a>
        </div>
      </li>
      <!-- Notifications Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-bell"></i>
          <span class="badge badge-warning navbar-badge">0</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <span class="dropdown-item dropdown-header">0 Notifications</span>
          <div class="dropdown-divider"></div>
          <!-- <a href="#" class="dropdown-item">
            <i class="fas fa-envelope mr-2"></i> 4 new messages
            <span class="float-right text-muted text-sm">3 mins</span>
          </a> -->
          <div class="dropdown-divider"></div>
          <!-- <a href="#" class="dropdown-item">
            <i class="fas fa-users mr-2"></i> 8 friend requests
            <span class="float-right text-muted text-sm">12 hours</span>
          </a> -->
          <div class="dropdown-divider"></div>
          <!-- <a href="#" class="dropdown-item">
            <i class="fas fa-file mr-2"></i> 3 new reports
            <span class="float-right text-muted text-sm">2 days</span>
          </a> -->
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">Toutes les Notifications</a>
        </div>
      </li>
      <!-- <li class="nav-item">
        <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
          <i class="fas fa-th-large"></i>
        </a>
      </li> -->
    </ul>
   
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <a href="#" class="brand-link text-center">      
      <i class="nav-icon fas fa-chess-queen"></i>
      <!-- <i class="fas fa-chess-queen"></i> -->
      <span class="brand-text font-weight-light">Pearl Hotel ERP</span>
    </a>


    <div class="sidebar">
      <nav class="mt-2">
      <div class="user-panel mt-2 pb-2 mb-2 d-flex">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
            <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <img src="<?php echo base_url() ?>upload/avatar.jfif" class="img-circle elevation-2" alt="User Image">
              <p>
               <?=$this->session->userdata('PEA_USERNAME')?>
                <i class="nav-icon fas fa-edit"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">



            <li class="nav-item">
              <a href="<?=base_url('Change_Pwd')?>" alt="Déconnexion" class="nav-link" >
               <i class="far fa-circle nav-icon"></i>
                  <p>Changer PWD</p>
                </a>
              </li>



              <li class="nav-item">
              <a href="#" alt="Déconnexion" class="nav-link" data-toggle="modal" data-target="#smallModal">
               <i class="far fa-circle nav-icon"></i>
                  <p>Déconnexion</p>
                </a>
              </li>

 

       
            </ul>
          </li>
        </ul>
      
      </div>
      </nav>
      <!-- Sidebar Menu -->
      <nav class="mt-2">


        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
         
               <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                Tableaux de bord
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
         <!-- <li class="nav-item">
                <a href="#" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Réservation</p>
                </a>
              </li> -->
              <li class="nav-item">
                <a href="#" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Stock</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Caisse</p>
                </a>
              </li>
         
            </ul>
          </li>
            <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>
                Administration
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">


            <li class="nav-item">
                <a href="<?=base_url('administration/Employes/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Collaborateurs</p>
                </a>
              </li>

               <li class="nav-item">
                <a href="<?=base_url('administration/Hierarchie/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Postes</p>
                </a>
              </li>


            <!-- <li class="nav-item">
                <a href="<?=base_url('chambre/Chambre/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Chambres</p>
                </a>
              </li> -->
              <!-- <li class="nav-item">
                <a href="<?=base_url('reservation/Reservation')?>" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Réservations</p>
                </a>
              </li> -->
              <!-- <li class="nav-item">
                <a href="<?=base_url('reservation/Prise_Chambre')?>" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Prise de chambre</p>
                </a>
              </li> -->
              <!-- <li class="nav-item">
                <a href="<?=base_url('chambre/Contact_Back/')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Contacts</p>
                </a>
              </li> -->


              <li class="nav-item">
                <a href="<?=base_url('administration/Fonctionalite/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Fonctionalités</p>
                </a>
              </li>

               <li class="nav-item">
                <a href="<?=base_url('administration/Profils_Users/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Profils et fonctionalités</p>
                </a>
              </li>


                  <li class="nav-item">
                <a href="<?=base_url('administration/Users/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Utilisateurs</p>
                </a>
              </li>
         

            </ul>
          </li>



  




         <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-chart-line"></i>
              <p>
                Rapports
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
      
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Entrees Stock</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Sortie Stock</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Mouvement stock</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Pertes Stock</p>
                </a>
              </li>

              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Situation des dettes</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Paiement fournisseurs</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Vente journaliers</p>
                </a>
              </li>
            </ul>
          </li>

          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-edit"></i>
              <p>
                Saisie et donn&eacute;es
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="<?=base_url('saisie/Stock/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Stock & Emplacement</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/Section/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Section de produit</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/Categorie/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Categorie de produit</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/Unite/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Unite de mesure</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/Produit/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Produit</p>
                </a>
              </li>      
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/Fournisseur/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Fournisseur</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/Type_Client/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Type de Client</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/Client/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Client</p>
                </a>
              </li>
              
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/Taux/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Taux de change</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/TVA/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>TVA</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('saisie/Tables/listing');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Table du restaurant</p>
                </a>
              </li>
       
            
             
             
            </ul>
          </li>

          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-warehouse"></i>
              <p>
                Stock
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
      
              <li class="nav-item">
                <a href="<?=base_url('stock/Entree_Stock/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Entre stock</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?=base_url('stock/Sortie_Stock/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Sortie Stock</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?=base_url('stock/Transfert_Stock/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Transfert Stock</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?=base_url('stock/Cause_Perte_Stock/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Cause de perte Stock</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?=base_url('stock/Perte_Stock/listing')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Perte Stock</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Stock Actuel</p>
                </a>
              </li>
       
            
             
             
            </ul>
          </li>


        <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-shopping-bag"></i>
              <p>
                Services
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
      
              <li class="nav-item">
                <a href="<?=base_url()?>service/Type_Service/listing" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Types de services</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?=base_url()?>service/Service/listing" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Services</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?=base_url()?>service/Consomation_Service/" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Consommation</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Facturation</p>
                </a>
              </li>
              </ul>
          </li>



          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-utensils"></i>
              <p>
                Restaurant
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
      
              <li class="nav-item">
                <a href="<?=base_url('restaurant/Service_Restaurant')?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Vente</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Paiement des Facture</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Toutes les Factures</p>
                </a>
              </li>
       
            
             
             
            </ul>
          </li>


          
        </ul>
      </nav>
    </div>
  </aside>




              <!-- small modal -->
<div class="modal fade" id="smallModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title" id="myModalLabel">Fermeture de la session</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <h6><b>Mr/Mme <?=$this->session->userdata('PEA_USERNAME')?>, </b> voulez-vous fermé cette session ?</h6>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
        <a href="<?=base_url()?>Login/do_logout" class="btn btn-info">Fermer</a>
      </div>
    </div>
  </div>
</div>

