 <?php
if($_SESSION['nivel'] ==1){

 ?>
 
 <ul class="sidebar navbar-nav">
      <li class="nav-item active">
    <a class="nav-link" href="creditos.php">
        <i class="fas fa-fw fa-user-tie"></i>
        <span>Créditos Privados</span>
    </a>
</li>

      <li class="nav-item active">
    <a class="nav-link" href="credito_fp.php">
        <i class="fas fa-fw fa-landmark"></i>
        <span>Créditos F.Públicos</span>
    </a>
</li>
      

	   <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="pagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <i class="fas fa-fw fa-plus"></i>
          <span>Painel de cadastro</span>
        </a>
        <div class="dropdown-menu" aria-labelledby="pagesDropdown">
          <h6 class="dropdown-header">Clientes & Usuarios:</h6>
          <a class="dropdown-item" href="cadastrar_clientes.php"> <i class="fas fa-fw fa-users"></i> Clientes</a>
          <a class="dropdown-item" href="cadastrar_user.php">  <i class="fas fa-fw fa-users"></i> Usuarios</a>
          <a class="dropdown-item" href="tipos_creditos.php">  <i class="fas fa-fw fa-home"></i>Créditos</a>


        </div>
      </li>
	  
	   <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="pagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <i class="fas fa-fw fa-folder"></i>
          <span>Contas</span>
        </a>
        <div class="dropdown-menu" aria-labelledby="pagesDropdown">
          <h6 class="dropdown-header">Caixas:</h6>
          <a class="dropdown-item" href="contas.php">Cadastro de Contas</a>
          <!-- <a class="dropdown-item" href="lista_contas.php">Lista de contas</a> -->
                  <div class="dropdown-divider"></div>
          <h6 class="dropdown-header">Relatorios:</h6>
          <a class="dropdown-item" href="report.php">Relatorios</a>
           <a class="dropdown-item" href="balanco.php">Balanço</a>  
           <a class="dropdown-item" href="projecoes.php">Mapa de projeçoes</a> 
          
        </div>
      </li>
      
      <li class="nav-item">
        <a class="nav-link" href="arquivos.php">
          <i class="fas fa-fw fa-folder"></i>
          <span>Arquivos</span></a>
      </li>
	  <li class="nav-item">
       <a class="nav-link" href="finalizados.php">
         <i class="fas fa-fw fa-table"></i>
         <span>Creditos Finalizados</span></a>
      </li>
      <!-- <li class="nav-item">
       <a class="nav-link" href="contractosEditados.php">
         <i class="fas fa-fw fa-book"></i>
         <span>Contractos Editados</span></a>
      </li> -->

      <li class="nav-item">
       <a class="nav-link" href="acessos_clientes.php">
         <i class="fas fa-fw fa-users"></i>
         <span>Acessos clientes</span></a>
      </li>

      <li class="nav-item">
       <a class="nav-link" href="chamadasReport.php">
         <i class="fas fa-fw fa-book"></i>
         <span>Historico chamadas</span></a>
      </li>

       <li class="nav-item">
       <a class="nav-link" href="sms_sent.php">
         <i class="fas fa-fw fa-envelope"></i>
         <span>SMS enviadas</span></a>
      </li>

      <li class="nav-item">
       <a class="nav-link" href="comprovativos.php">
         <i class="fas fa-fw fa-book"></i>
         <span>Comprovativos</span></a>
      </li>
  
    <!-- <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="pagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <i class="fas fa-fw fa-folder"></i>
          <span>Recursos Humanos</span>
        </a>
       <div class="dropdown-menu" aria-labelledby="pagesDropdown">
          <h6 class="dropdown-header">Painel RH:</h6>
          <a class="dropdown-item" href="functionarios.php"><i class="fas fa-fw fa-users"> Funcionários</i></a>
          <a class="dropdown-item" href="assiduidade.php"><i class="fas fa-fw fa-users"> Assiduidade</i></a>

          <a class="dropdown-item" href="salarios.php"><i class="fas fa-fw fa-home"> Salários</i></a>
          <a class="dropdown-item" href="emprestimos.php"><i class="fas fa-fw fa-book"> Emprestimos</i></a>
          <a class="dropdown-item" href="ferias.php"><i class="fas fa-fw fa-users"> Gestão de ferias</i></a>
          <a class="dropdown-item" href="disciplinares.php"><i class="fas fa-fw fa-book"> Processo disciplinar</i></a>
    <a class="dropdown-item" href="demissoes.php"><i class="fas fa-fw fa-users"> Demissões</i></a>

                 <div class="dropdown-divider"></div>
         <h6 class="dropdown-header">Relatorios:</h6>
         <a class="dropdown-item" href=""> <i class="fas fa-fw fa-home"> INSS</i></a>
         <a class="dropdown-item" href=""> <i class="fas fa-fw fa-home"> IRPS</i></a>
          
    </div>
    </li> -->
       
 
    </ul>
    
    
    
	<?php }elseif($_SESSION['nivel'] ==2){
?>
 <ul class="sidebar navbar-nav">
      <li class="nav-item active">
        <a class="nav-link" href="creditos.php">
          <i class="fas fa-fw fa-tachometer-alt"></i>
          <span>Creditos</span>
        </a>
      </li>
      

	   <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="pagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <i class="fas fa-fw fa-plus"></i>
          <span>Painel de cadastro</span>
        </a>
        <div class="dropdown-menu" aria-labelledby="pagesDropdown">
          <h6 class="dropdown-header">Clientes & Usuarios:</h6>
          <a class="dropdown-item" href="cadastrar_clientes.php"> <i class="fas fa-fw fa-users"></i> Clientes</a>
          <a class="dropdown-item" href="cadastrar_user.php">  <i class="fas fa-fw fa-users"></i> Usuarios</a>
          <a class="dropdown-item" href="tipos_creditos.php">  <i class="fas fa-fw fa-home"></i>Créditos</a>


        </div>
      </li>
	  
	   <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="pagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <i class="fas fa-fw fa-folder"></i>
          <span>Contas</span>
        </a>
        <div class="dropdown-menu" aria-labelledby="pagesDropdown">
          <h6 class="dropdown-header">Caixas:</h6>
          <a class="dropdown-item" href="contas.php">Cadastro de Contas</a>
                  <div class="dropdown-divider"></div>
          <h6 class="dropdown-header">Relatorios:</h6>
          <a class="dropdown-item" href="report.php">Relatorios</a>
          <a class="dropdown-item" href="balanco.php">Balanço</a>          
        </div>
      </li>
	  
	  
      
      
      <li class="nav-item">
        <a class="nav-link" href="arquivos.php">
          <i class="fas fa-fw fa-folder"></i>
          <span>Arquivos</span></a>
      </li>
      
 
 <!-- <li class="nav-item">
       <a class="nav-link" href="contractosEditados.php">
         <i class="fas fa-fw fa-book"></i>
         <span>Contractos Editados</span></a>
      </li> -->
       <li class="nav-item">
       <a class="nav-link" href="acessos_clientes.php">
         <i class="fas fa-fw fa-users"></i>
         <span>Acessos clientes</span></a>
      </li>

      <li class="nav-item">
       <a class="nav-link" href="chamadasReport.php">
         <i class="fas fa-fw fa-book"></i>
         <span>Historico chamadas</span></a>
      </li>

      <li class="nav-item">
       <a class="nav-link" href="comprovativos.php">
         <i class="fas fa-fw fa-book"></i>
         <span>Comprovativos</span></a>
      </li>

    </ul>

  <?php }elseif($_SESSION['nivel']== 4){
    ?>
     <ul class="sidebar navbar-nav">
   <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="pagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <i class="fas fa-fw fa-folder"></i>
          <span>Recursos Humanos</span>
        </a>
        <div class="dropdown-menu" aria-labelledby="pagesDropdown">
          <h6 class="dropdown-header">Painel RH:</h6>
          <a class="dropdown-item" href="functionarios.php"><i class="fas fa-fw fa-users"> Funcionários</i></a>
          <a class="dropdown-item" href="assiduidade.php"><i class="fas fa-fw fa-users"> Assiduidade</i></a>

          <a class="dropdown-item" href="salarios.php"><i class="fas fa-fw fa-home"> Salários</i></a>
          <a class="dropdown-item" href="emprestimos.php"><i class="fas fa-fw fa-book"> Emprestimos</i></a>
          <a class="dropdown-item" href="ferias.php"><i class="fas fa-fw fa-users"> Gestão de ferias</i></a>
          <a class="dropdown-item" href="disciplinares.php"><i class="fas fa-fw fa-book"> Processo disciplinar</i></a>
          <a class="dropdown-item" href="demissoes.php"><i class="fas fa-fw fa-users"> Demissões</i></a>

                  <div class="dropdown-divider"></div>
          <h6 class="dropdown-header">Relatorios:</h6>
          <a class="dropdown-item" href="report.php"> <i class="fas fa-fw fa-home"> INSS</i></a>
          <a class="dropdown-item" href="report_data.php"> <i class="fas fa-fw fa-home"> IRPS</i></a>
          
        </div>
      </li>
      </ul>
  <?php }else{
		?>
		 <ul class="sidebar navbar-nav">
      <li class="nav-item active">
        <a class="nav-link" href="creditos.php">
          <i class="fas fa-fw fa-tachometer-alt"></i>
          <span>Creditos</span>
        </a>
      </li>
      	  
	   <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="pagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <i class="fas fa-fw fa-users"></i>
          <span>Clientes</span>
        </a>
        <div class="dropdown-menu" aria-labelledby="pagesDropdown">
          <h6 class="dropdown-header">Clientes:</h6>
          <a class="dropdown-item" href="cadastrar_clientes.php">Cadastrar</a>
          <a class="dropdown-item" href="lista_clientes.php">Listar</a>
              
        </div>
      </li>
	     
	  
      <li class="nav-item">
        <a class="nav-link" href="comissoes.php">
          <i class="fas fa-fw fa-chart-area"></i>
          <span>Comissções de vendedores</span></a>
      </li>
	  
	  
      <li class="nav-item">
        <a class="nav-link" href="individual_cliente.php">
          <i class="fas fa-fw fa-table"></i>
          <span>Historico de cliente</span></a>
      </li>
    </ul>
		
		
	<?php }
	
	
	?>