
<?php  
use App\Models\User;
$user=User::where('id','=',Session::get('id'))->first(); 
?>


<ul class="nav navbar-nav" style='margin:0px'>
    <li class ="dropdown">
        <a href="<?php echo url('accueil'); ?> ">
          <span class="glyphicon glyphicon-home"></span>
        </a>
    </li>

    <!--
    <li class ="dropdown">
      <h4 style='color:darkred;font-weight:bold;padding-top:4px'><?php echo Session::get('titre_spec'); ?></h4>
    </li>
  -->

    <!-- PARAMETRERS -->
    <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Paramètres<b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="<?php echo URL::to('/param/parametres'); ?> ">Calculs,Taux,Texte ...</a></li>
         <?php if($user->SysAdmin): ?> 
         <!-- <li><a href="<?php echo URL::to('/param/importations'); ?> ">Importation</a></li> -->
         <li><a href="<?php echo URL::to('/param/hyperfile'); ?> ">Importations .TXT/Hyperfile</a></li>
         <li><a href="<?php echo URL::to('/test_editon'); ?> ">Test</a></li>
         <?php endif; ?> 
      </ul>
    </li>


      <!-- USERS -->
      <?php if($user->HasRole("ADMINISTRATEUR") || $user->HasRole("ADMINISTRATEUR FONCTIONNEL")): ?> 
        <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Accès<b class="caret"></b></a>
          <ul class="dropdown-menu"  role="menu"  aria-labelledby="dLabel">
          <li><a href="<?php echo URL::to('/acces/users'); ?> ">Utilisateurs</a></li>
          <li><a href="<?php echo URL::to('/acces/roles'); ?> ">Rôles</a></li>
          <?php if($user->SysAdmin): ?>
            <li><a href="<?php echo URL::to('/acces/permissions'); ?> ">Permissions</a></li>
          <?php endif; ?> 
        </ul>
        </li>
      <?php endif; ?>

    <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Tables de base<b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="<?php echo URL::to('/param/benef_types'); ?> ">Types de bénéficiaires</a></li>
        <li><a href="<?php echo URL::to('/param/benef_statuts'); ?> ">Statuts des bénéficiaires</a></li>
        <li class="divider"></li> 
        <li><a href="<?php echo URL::to('/param/secteurs'); ?> ">Secteurs</a></li>
      </ul>
    </li>

</ul>

<!-- ACTIONS -->
<?php echo $__env->make('layouts.navbar_actions', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>





<?php /**PATH C:\xampp\htdocs\CPSWF\old_sipre\sipre\resources\views/layouts/navbar_parametres.blade.php ENDPATH**/ ?>