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

<!-- MANDATEMENTS -->
  <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>
        -->
        
      <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Tiers<b class="caret"></b></a>
        <ul class="dropdown-menu"  role="menu"  aria-labelledby="dLabel">
          <?php if($user->can("CRE_VISU") || $user->HasRole("ADMINISTRATEUR")): ?>
            <li><a href="<?php echo URL::to('/tiers/creanciers'); ?> ">Créanciers</a></li>    
          <?php endif; ?> 

        </ul>
      </li>


      <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Mandatements<b class="caret"></b></a>
        <ul class="dropdown-menu"  role="menu"  aria-labelledby="dLabel">
          <?php if($user->can("MDT_VISU") || $user->HasRole("ADMINISTRATEUR")): ?>
          <li><a href="<?php echo URL::to('/mandatements/mandats'); ?> ">Mandats</a></li> 
          <?php endif; ?>    

          <?php if($user->HasRole('MANDATEMENT')|| $user->HasRole("ADMINISTRATEUR")): ?>
          <li class="divider"></li>            
          <li><a href="<?php echo URL::to('/mandatements/imputations'); ?> ">Imputations</a></li>
          <?php endif; ?> 

          <?php if($user->HasRole('MANDATEMENT')|| $user->HasRole("ADMINISTRATEUR")): ?>
          <li class="divider"></li>            
          <li><a href="<?php echo URL::to('/mandatements/generation'); ?> ">Transferts</a></li>
          <?php endif; ?> 
        </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\ancienne verrsion\sipre\resources\views/layouts/navbar_mandatement.blade.php ENDPATH**/ ?>