<div class="dropdown">
  <a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    <i class="fas fa-bars"></i>
  </a>

  <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink">
    @if(Auth::user()->can('edit-users'))
    <a class="dropdown-item" href="#" id='editor_edit'><i class='fas fa-pen'></i>Modifica</a>
    @endif

    @if(Auth::user()->can('remove-users'))
    <a class="dropdown-item" href="#" id='editor_delete'><i class='fas fa-trash'></i>Elimina</a>
    @endif

    @if(Auth::user()->can('edit-role_user'))
    <a class='dropdown-item' onclick='load_ruoli({{$entity->id}})'><i class='fas fa-lock-open'></i> Permessi</a>
    @endif

    <a class="dropdown-item" onclick="load_progetti({{$entity->id}})"><i class="fas fa-project-diagram"></i>Progetti</a>

  </div>
</div>
