@can('edit_users') Edit @endcan @can('delete_users') {!! Form::open( ['method' => 'delete', 'url' => route($entity.'.destroy', ['user' => $id]), 'style' => 'display: inline', 'onSubmit' => 'return confirm("Are yous sure wanted to delete it?")']) !!} {!! Form::close() !!} @endcan