<!-- ANALYSES -->
@if( $user->HasRole("ADMINISTRATEUR") || $user->HasRole("ADMINISTRATEUR FONCTIONNEL"))
  <li class="nav-item menu-is-opening menu-open">
    <a href="#" class="nav-link  active">
      <p>ACCES<i class="fas fa-angle-left right"></i></p>
    </a>

    <ul class="nav nav-treeview">
        @if($user->HasRole("ADMINISTRATEUR")|| $user->can("USR_VISU"))
        <li class="nav-item">
          <a href="{!! url('/users') !!}" class="nav-link  {!! ($submenu=='users')?'active':'' !!}">
            <i class="nav-icon fa fa-user"></i>
            <p>Utilisateurs</p>
          </a>
        </li>
        @endif
        @if($user->HasRole("ADMINISTRATEUR")|| $user->can("ROL_VISU"))
        <li class="nav-item">
          <a href="{!! url('/roles') !!}" class="nav-link  {!! ($submenu=='roles')?'active':'' !!}">
            <i class="nav-icon fa fa-lock"></i>
            <p>Rôles</p>
          </a>
        </li>
        @endif
        @if($user->HasRole("ADMINISTRATEUR"))
        <li class="nav-item">
          <a href="{!! url('/permissions') !!}" class="nav-link  {!! ($submenu=='permissions')?'active':'' !!}">
            <i class="nav-icon fa fa-cogs"></i>
            <p>Permissions</p>
          </a>
        </li>
        @endif
    </ul>
  </li>
@endif


