  <li class="nav-item menu-open">
    <a href="{!! url('/home/retraites') !!}" class="nav-link active">
      <i class="nav-icon fas fa-person-cane"></i>
      <p>RETRAITES</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/R') !!}" 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('RET_CER_RAZ'))
      <li class="nav-item ">
        <a href="{!! url('raz_rappel/R') !!}" class="nav-link {!! ($submenu=='raz')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>RAZ Rappels</p>
        </a>
      </li>
      @endif
      <!--
      @if($user->HasRole("ADMINISTRATEUR") || $user->can('RET_CER_RAZ'))
      <li class="nav-item ">
        <a href="{!! url('raz_cvie') !!}" class="nav-link {!! ($submenu=='raz')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>RAZ Certificat de vie</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('RET_VER_VISU'))
      <li class="nav-item ">
        <a href="{!! url('versements_encours/RET') !!}" 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('RET_VER_GEN'))
      <li class="nav-item ">
        <a href="{!! url('versements_generation_b/RET') !!}" 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('RET_VER_GEN'))
      <li class="nav-item ">
        <a href="{!! url('versements_generation_def/RET') !!}" 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('RET_VER_EXP'))
      <li class="nav-item ">
        <a href="{!! url('versement_annee/RET') !!}" class="nav-link {!! ($submenu=='export')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Edition & Export</p>
        </a>
      </li>
      @endif
      @if($user->HasRole("ADMINISTRATEUR") || $user->can('RET_AJUST'))
      <li class="nav-item ">
        <a href="{!! URL::to('retraites/reajustement') !!}" class="nav-link {!! ($submenu=='reajustement')?'active':'' !!}">
          <i class="nav-icon far fa-circle"></i>
          <p>Réajustement</p>
        </a>
      </li>
      @endif
    </ul>
  </li>

  @if($user->HasRole("ADMINISTRATEUR") || $user->can('RET_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/RET') !!}" 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/RET') !!}" 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

