<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" aria-labelledby="dropdownMenuLink">
    @if(Auth::user()->can('edit-roles-permissions') && $entity->name != 'amministratore' && $entity->name != 'user')
    <a class="dropdown-item" href="#" id='editor_edit'><i class='fas fa-pen'></i>Modifica</a>
    @endif

    @if(Auth::user()->can('edit-roles-permissions') && $entity->name != 'amministratore' && $entity->name != 'user')
    <a class="dropdown-item" href="#" id='editor_delete'><i class='fas fa-trash'></i>Elimina</a>
    @endif

    @if(Auth::user()->can('edit-roles-permissions'))
    <button class='dropdown-item' onclick='load_permessi({{$entity->id}})'><i class='fas fa-lock-open'></i> Permessi</button>
    <button class='dropdown-item' onclick='load_utenti({{$entity->id}})'><i class='fas fa-lock-open'></i> Utenti</button>
    @endif

  </div>
</div>
