title) { return $this->title; } return ' 修改库存  '; } /** * @param Model|Authenticatable|HasPermissions|null $user * * @return bool */ protected function authorize($user): bool { return $user->can('dcat.admin.dealers.edit_product'); } public function render() { $form = DealerEditProductForm::make()->payload(['id'=>$this->primaryKey]); // $grid = DealerUserProductSimpleTable::make(['id'=>$this->primaryKey]); return Modal::make() ->lg() ->title($this->title()) ->body($form) ->button($this->title()); } }