allow($permission)) { return ' '; } } /** * @return string */ public function getDeleteButtonAttribute($permission, $route) { if (access()->allow($permission)) { return ' '; } } }