
<?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>
  -->

    <!-- AIDES SOCIALES -->
    <?php if($user->HasRole("ADMINISTRATEUR") 
                    || $user->can("ANA_ASOC")
                    ): ?> 
      <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Aides Sociales<b class="caret"></b></a>
        <ul class="dropdown-menu">
          <li><a href="<?php echo URL::to('/stats/tdb/S'); ?> ">Tableau de bord</a></li>
          <li><a href="<?php echo URL::to('/stats/graph/S'); ?> ">Graphiques</a></li>
             <?php if($user->HasRole("ADMINISTRATEUR") || $user->HasRole("ADMINISTRATEUR FONCTIONNEL")): ?> 
            <li><a href="<?php echo URL::to('/stats/tdb_nbenfant/S'); ?> ">Tableau de bord sur période</a></li>
            <?php endif; ?>
        </ul>
      </li>
    <?php endif; ?>

    <!-- ALLOCATIONS -->
    <?php if($user->HasRole("ADMINISTRATEUR") 
                    || $user->can("ANA_ALL")
                    ): ?>  
        <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Allocations<b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo URL::to('/stats/tdb/A'); ?> ">Tableau de bord</a></li>
            <li><a href="<?php echo URL::to('/stats/graph/A'); ?> ">Graphiques</a></li>
             <?php if($user->HasRole("ADMINISTRATEUR") || $user->HasRole("ADMINISTRATEUR FONCTIONNEL")): ?> 
            <li><a href="<?php echo URL::to('/stats/tdb_nbenfant/A'); ?> ">Tableau de bord sur période</a></li>
            <?php endif; ?>
          </ul>
        </li>
    <?php endif; ?>

    <!-- Retraites -->
    <?php if($user->HasRole("ADMINISTRATEUR") 
                    || $user->can("ANA_RET")
                    ): ?> 
        <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Retraites<b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo URL::to('/stats/tdb/R'); ?> ">Tableau de bord</a></li>
            <li><a href="<?php echo URL::to('/stats/graph/R'); ?> ">Graphiques</a></li>
            <li><a href="<?php echo URL::to('/stats/optimind'); ?> ">Extraction OPTIMIND</a></li>
          </ul>
        </li>
    <?php endif; ?>

    <!-- Recouvrement -->
    <?php if($user->HasRole("ADMINISTRATEUR") 
                    || $user->can("ANA_REC")
                    ): ?> 
        <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Recouvrement<b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo URL::to('/stats/secteur'); ?> ">Secteurs</a></li>
            <li><a href="<?php echo URL::to('/stats/secteur_general'); ?> ">Secteurs/Date</a></li>
            <li><a href="<?php echo URL::to('/stats/salaires'); ?> ">Nombre de salariés/Date</a></li>
          </ul>
        </li>
    <?php endif; ?>

    <!-- Données -->
    <?php if($user->HasRole("ADMINISTRATEUR") 
                    || $user->can("ANA_DATA")
                    ): ?> 
        <li class ="dropdown"><a  class="dropdown-toggle" data-toggle="dropdown"  href="">Données<b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo URL::to('/analyses/benef_doublons'); ?> ">Bénéficiaires-doublons</a></li>
            <li><a href="<?php echo URL::to('/analyses/histo_rib'); ?> ">Modifications RIB</a></li>
          </ul>
        </li>
    <?php endif; ?>
</ul>

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





<?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre\resources\views/layouts/navbar_analyses.blade.php ENDPATH**/ ?>