<?php
  if(!isset($menu)) $menu="";
?>


<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
  <li class="nav-header">DONNEES</li>


  <li class="nav-item">
  <a href="<?php echo url('dashboard'); ?>" class="nav-link  <?php echo ($menu=='dashboard')?'active':''; ?>">
    <i class="nav-icon fas fa-chart-line"></i>
    <p>Tableau de bord</p>
  </a>
  </li>
  <li class="nav-item">
  <a href="<?php echo ''; ?>" class="nav-link <?php echo ($menu=='')?'active':''; ?>">
    <i class="nav-icon fas fa-sliders"></i>
    <p>XXXX</p>
  </a>
  </li>

</ul>            



<?php if($user->hasRole("ADMINISTRATEUR")): ?>
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
  <li class="nav-header">ACCES</li>
  <li class="nav-item"> 
  <a href="<?php echo url('users'); ?>" class="nav-link <?php echo ($menu=='utilisateurs')?'active':''; ?>"> 
    <i class="nav-icon fa fa-user"></i> 
    <p>Utilisateurs</p> 
  </a> 
  </li> 

  <li class="nav-item">
  <a href="<?php echo url('roles'); ?>" class="nav-link <?php echo ($menu=='roles')?'active':''; ?>">
    <i class="nav-icon fa fa-lock"></i>
    <p>Rôles</p> 
  </a> 
  </li>

  <li class="nav-item">
  <a href="<?php echo url('permissions'); ?>" class="nav-link <?php echo ($menu=='permissions')?'active':''; ?>">
    <i class="fa fa-gear" aria-hidden="true"></i>
    <p>Permissions</p>
  </a>
  </li>
</ul>  
<?php endif; ?>      
           
<?php /**PATH C:\xampp\htdocs\EDUCATION\laravel12_btsciel\resources\views/forms/menu_base.blade.php ENDPATH**/ ?>