
<?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'>
      <!-- RETRAITES -->
        <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>
        -->

        <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/R'); ?> ">Bénéficiaires</a></li>

            <?php if($user->can("RET_CER_RAZ") || $isadmin): ?>
            <li class="divider"></li>  
            <li class=""><a href="<?php echo URL::to('/raz_rappel/RET'); ?> ">RAZ Rappel</a></li> 
            <li class=""><a href="<?php echo URL::to('/raz_cvie'); ?> ">RAZ Certificat de vie</a></li> 
            <?php endif; ?> 
          </ul>
        </li>


        <?php if($user->can("RET_VER_VISU") || $isadmin): ?>
          <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Versements Retraite<b class="caret"></b></a>
            <ul class="dropdown-menu">

              <li><a href="<?php echo URL::to('versements_encours/RET'); ?> ">Versements en cours</a></li> 
              
              
              <?php if($user->can("RET_GEN") || $isadmin): ?>
              <li class="divider"></li> 
              <li><a href="<?php echo URL::to('versements_generation_b/RET'); ?> ">Génération du mois</a></li>

              <li class=""><a href="<?php echo URL::to('versements_generation_def/RET'); ?> ">Génération du mois définitive</a></li>
              <?php endif; ?> 

              <?php if($user->can("VER_EXP") || $isadmin): ?>
              <li class="divider"></li> 
              <li><a href="<?php echo URL::to('prestations/versement_annee/RET'); ?> ">Liste pour Edition & Export</a></li> 
              <?php endif; ?>

              <?php if($user->can("RET_AJUST") || $isadmin): ?>
              <li class="divider"></li> 
              <li class=""><a href="<?php echo URL::to('retraites/reajustement'); ?> ">Réajustement des retraites</a></li> 
              <?php endif; ?> 
            </ul>
          </li>

<!--
          <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Versements CSR<b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li><a href="<?php echo URL::to('versements_encours/SAV'); ?> ">Versements en cours</a></li> 
              
              <?php if($user->can("CSR_GEN") || $isadmin): ?>
              <li class="divider"></li> 
              <li><a href="<?php echo URL::to('versements_generation_b/SAV'); ?> ">Génération du mois</a></li>
              <li class=""><a href="<?php echo URL::to('versements_generation_def/SAV'); ?> ">Génération du mois définitive</a></li>
              <?php endif; ?>

              <?php if($user->can("VER_EXP") || $isadmin): ?>
              <li class="divider"></li> 
              <li><a href="<?php echo URL::to('prestations/versement_annee/SAV'); ?> ">Liste pour Edition & Export</a></li> 
              <?php endif; ?>

              <?php if($user->can("CSR_AJUST") || $isadmin): ?>
                <li class="divider"></li> 
                <li class="">
                  <a href="<?php echo URL::to('retraites/reajustement_csr'); ?> ">Réajustement de la CSR</a>
                </li>
              <?php endif; ?>
            </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="">
              <a href="<?php echo URL::to('/maj_certificats/RET'); ?> ">Mise à jour des  Certificats</a>
            </li> 
            <li class="">
              <a href="<?php echo URL::to('/maj_certificats_etrangers/RET'); ?> ">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_retraites.blade.php ENDPATH**/ ?>