title) { return $this->title; } return ' 等级规则   '; } /** * @param Model|Authenticatable|HasPermissions|null $user * * @return bool */ protected function authorize($user): bool { return $user->can('dcat.admin.dealer_products.lvl_rules'); } public function render() { $form = DealerProductLvlRuleForm::make()->payload(['id'=>$this->getKey()]); return Modal::make() ->lg() ->title($this->title()) ->body($form) ->button($this->title()); } }