<!-- BASE -->


@if( $user->HasRole("ADMINISTRATEUR") || $user->can("ALL_VISU") )
  <li class="nav-item menu-open">
    <a href="{!! url('/home/allocations') !!}" class="nav-link ">
      <i class="nav-icon fas fa-people-roof"></i>
      <p>ALLOCATIONS</p>
    </a>
    @if($menu_home=="allocations")
      @include("forms.menu_allocations")
    @endif
  </li>
 @endif

 @if( $user->HasRole("ADMINISTRATEUR") || $user->can("SOC_VISU") )
  <li class="nav-item menu-open">
    <a href="{!! url('/home/aides_sociales') !!}" class="nav-link ">
      <i class="nav-icon fas fa-handshake-angle"></i>
      <p>AIDES SOCIALES</p>
    </a>
    @if($menu_home=="aides_sociales")
      @include("forms.menu_aides_sociales")
    @endif
  </li>
 @endif

@if( $user->HasRole("ADMINISTRATEUR") || $user->can("RET_VISU") )
  <li class="nav-item menu-open">
    <a href="{!! url('/home/retraites') !!}" class="nav-link ">
      <i class="nav-icon fas fa-person-cane"></i>
      <p>RETRAITES</p>
    </a>
      @if($menu_home=="retraites")
      @include("forms.menu_retraites")
    @endif
  </li>
 @endif

@if( $user->HasRole("ADMINISTRATEUR") || $user->can("REC_VISU") || $user->can("SAL_VISU") )
  <li class="nav-item menu-open">
    <a href="{!! url('/home/recouvrement') !!}" class="nav-link ">
      <i class="nav-icon fas fa-hand-holding-dollar"></i>
      <p>RECOUVREMENT</p>
    </a>
  </li>
 @endif

 @if( $user->HasRole("ADMINISTRATEUR") || $user->can("MDT_VISU") )
  <li class="nav-item menu-open">
    <a href="{!! url('/home/mandatement') !!}" class="nav-link ">
      <i class="nav-icon fas fa-file-invoice"></i>
      <p>MANDATEMENT</p>
    </a>
  </li>
 @endif


 @if( $user->HasRole("ADMINISTRATEUR") || $user->can("CPT_VISU") )
  <li class="nav-item menu-open">
    <a href="{!! url('/home/comptabilite') !!}" class="nav-link ">
      <i class="nav-icon fas fa-cash-register"></i>
      <p>COMPTABILITE</p>
    </a>
  </li>
 @endif

   @if( $user->HasRole("ADMINISTRATEUR") || $user->can("ANA_ALL") || $user->can("ANA_ALL") || $user->can("ANA_SOC") || $user->can("ANA_RET") || $user->can("ANA_DATA"))
  <li class="nav-item menu-open">
    <a href="{!! url('/home/analyses') !!}" class="nav-link ">
      <i class="nav-icon fas fa-chart-line"></i>
      <p>ANALYSES</p>
    </a>
  </li>
   @endif


  
    @if( $user->HasRole("ADMINISTRATEUR") || $user->can("PAR_MAJ") || $user->can("PAR_VISU"))
    <li class="nav-item menu-open">
      <a href="{!! url('/home/parametres') !!}" class="nav-link ">
        <i class="nav-icon fas fa-gears"></i>
        <p>PARAMETRES</p>
      </a>
    </li>
   @endif

    @if( $user->HasRole("ADMINISTRATEUR") || $user->can("ROL_VISU")|| $user->can("USR_MAJ") )
    <li class="nav-item menu-open">
      <a href="{!! url('/home/acces') !!}" class="nav-link ">
        <i class="nav-icon fas fa-users"></i>
        <p>ACCES & DROITS</p>
      </a>
    </li>
    @endif

