发布'; /** * @var string */ protected $style = 'btn-danger'; /** * @param Model|Authenticatable|HasPermissions|null $user * * @return bool */ protected function authorize($user): bool { return $user->can('dcat.admin.draw_activities.publish'); } public function render() { $form = DrawActivityPublishForm::make()->payload(['id'=>$this->getKey()]); return Modal::make() ->lg() ->title($this->title()) ->body($form) ->button("style}\">{$this->title}  "); } }