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

$classe_admin="disabled";
if($user->HasRole("ADMINISTRATEUR")|| $user->HasRole("ADMINISTRATEUR FONCTIONNEL") ) 
    $classe_admin="";

$isadmin=$user->HasRole("ADMINISTRATEUR");
$isadmin_f=$user->HasRole("ADMINISTRATEUR FONCTIONNEL");
?>

  <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>
      -->
        
      <!-- ALLOCATIONS -->
        <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Tiers<b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo URL::to('/tiers/beneficiaires/limit/A'); ?> ">Bénéficiaires</a></li>   

                           
            <?php if($user->can("ENF_VISU") || $isadmin): ?>     
            <li><a href="<?php echo URL::to('/tiers/enfants/limit/A'); ?> ">Enfants</a></li>  
            <?php endif; ?>  

            <?php if($user->can("ALL_RAP_RAZ") || $isadmin): ?> 
            <li class="divider"></li>  
            <li class="<?php echo $classe_admin; ?>"><a href="<?php echo URL::to('/raz_rappel/ALL'); ?> ">RAZ Rappel</a></li>  
            <?php endif; ?>               
          </ul>
        </li>


        
        <?php if($user->can("ALL_VER_VISU") || $isadmin): ?> 
        <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Versements<b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo URL::to('versements_encours/ALL'); ?> ">Versements en cours</a></li>

            <?php if($user->can("ALL_GEN") || $isadmin): ?> 
            <li class="divider"></li> 
            <li><a href="<?php echo URL::to('versements_generation_b/ALL'); ?> ">Génération du mois</a></li> 
            <li class="<?php echo $classe_admin; ?>"><a href="<?php echo URL::to('versements_generation_def/ALL'); ?> ">Génération du mois définitive</a></li> 
            <?php endif; ?>

            <li class="divider"></li> 
            <li><a href="<?php echo URL::to('prestations/versement_annee/ALL'); ?> ">Liste pour Edition & Export</a></li> 

          </ul>
        </li>
        <?php endif; ?>

        <?php if($user->can("CER_MAJ") || $isadmin): ?> 
        <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Certificats<b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li class="<?php echo $classe_admin; ?>"><a href="<?php echo URL::to('/maj_certificats/ALL'); ?> ">Mise à jour des  Certificats</a></li> 
            <li class="<?php echo $classe_admin; ?>"><a href="<?php echo URL::to('/maj_certificats_etrangers/ALL'); ?> ">Mise à jour des  Certificats étrangers</a></li> 
          </ul>
        </li>
        <?php endif; ?>
    
    </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\ancienne verrsion\sipre\resources\views/layouts/navbar_allocations.blade.php ENDPATH**/ ?>