title) { return $this->title; } return ' 安全密码  '; } /** * @param Model|Authenticatable|HasPermissions|null $user * * @return bool */ protected function authorize($user): bool { return $user->can('dcat.admin.users.reset_account_password'); } public function render() { $form = UserResetAccountPasswordForm::make()->payload(['id'=>$this->getKey()]); return Modal::make() ->lg() ->title($this->title()) ->body($form) ->button($this->title()); } }