  <li class="nav-item menu-open">
    <a href="{!! url('/home/allocations') !!}" class="nav-link active">
      <i class="nav-icon fas fa-people-roof"></i>
      <p>ALLOCATIONS</p>
    </a>
  </li>

  <li class="nav-item  {!! ($menu=='tiers')?'menu-is-opening menu-open':'' !!}">
    <a href="#" class="nav-link {!! ($menu=='tiers')?'active':'' !!}">
      <p>Tiers<i class="fas fa-angle-left right"></i></p>
    </a>

    <ul class="nav nav-treeview ">
      @if($user->HasRole("ADMINISTRATEUR") || $user->can('BEN_VISU'))
      <li class="nav-item ">
        <a href="{!! url('beneficiaires_liste/A') !!}" class="nav-link {!! ($submenu=='beneficiaires')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Bénéficiaires</p>
        </a>
      </li>
      @endif
      @if($user->HasRole("ADMINISTRATEUR") || $user->can('ENF_VISU'))
      <li class="nav-item ">
        <a href="{!! url('enfants_liste/A') !!}" class="nav-link {!! ($submenu=='enfants')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Enfants</p>
        </a>
      </li>
      @endif
      @if($user->HasRole("ADMINISTRATEUR") || $user->can('ALL_RAP_RAZ'))
      <li class="nav-item ">
        <a href="{!! url('raz_rappel/A') !!}" class="nav-link {!! ($submenu=='raz')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>RAZ Rappels</p>
        </a>
      </li>
      @endif
    </ul>
  </li>

  <li class="nav-item {!! ($menu=='versements')?'menu-is-opening menu-open':'' !!}">
    <a href="#" class="nav-link {!! ($menu=='versements')?'active':'' !!}">
      <p>Versements<i class="fas fa-angle-left right"></i></p>
    </a>

    <ul class="nav nav-treeview ">
      @if($user->HasRole("ADMINISTRATEUR") || $user->can('ALL_VER_VISU'))
      <li class="nav-item ">
        <a href="{!! url('versements_encours/ALL') !!}" class="nav-link {!! ($submenu=='versements_encours')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Versements en-cours</p>
        </a>
      </li>
      @endif
      @if($user->HasRole("ADMINISTRATEUR") || $user->can('ALL_VER_GEN'))
      <li class="nav-item ">
        <a href="{!! url('versements_generation_b/ALL') !!}" class="nav-link {!! ($submenu=='versements_generation')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Génération</p>
        </a>
      </li>
      @endif
      @if($user->HasRole("ADMINISTRATEUR") || $user->can('ALL_VER_GEN'))
      <li class="nav-item ">
        <a href="{!! url('versements_generation_def/ALL') !!}" class="nav-link {!! ($submenu=='versements_generation_definitive')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Génération définitive</p>
        </a>
      </li>
      @endif
      @if($user->HasRole("ADMINISTRATEUR") || $user->can('ALL_VER_EXP'))
      <li class="nav-item ">
        <a href="{!! url('versement_annee/ALL') !!}" class="nav-link {!! ($submenu=='export')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Edition & Export</p>
        </a>
      </li>
      @endif
    </ul>
  </li>

  @if($user->HasRole("ADMINISTRATEUR") || $user->can('ALL_CER_MAJ'))
  <li class="nav-item {!! ($menu=='certificats')?'menu-is-opening menu-open':'' !!}">
    <a href="#" class="nav-link {!! ($menu=='certificats')?'active':'' !!}">
      <p title="Mise à jour des certificats">MAJ des Certificats<i class="fas fa-angle-left right"></i></p>
    </a>
    <ul class="nav nav-treeview ">
      <li class="nav-item ">
        <a href="{!! url('maj_certificats/ALL') !!}" class="nav-link {!! ($submenu=='maj_certificats')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Certificats</p>
        </a>
      </li>
      <li class="nav-item ">
        <a href="{!! url('maj_certificats_etrangers/ALL') !!}" class="nav-link {!! ($submenu=='maj_certificats_etrangers')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Certificats étrangers</p>
        </a>
      </li>
    </ul>
  </li>
  @endif

