columns([ TextColumn::make('description') ->label(trans('admin/webhook.table.description')), TextColumn::make('endpoint') ->label(trans('admin/webhook.table.endpoint')), ]) ->actions([ DeleteAction::make(), EditAction::make(), ]) ->emptyStateIcon('tabler-webhook') ->emptyStateDescription('') ->emptyStateHeading(trans('admin/webhook.no_webhooks')) ->emptyStateActions([ CreateAction::make('create') ->label(trans('admin/webhook.create_action', ['action' => trans('filament-actions::create.single.modal.actions.create.label')])) ->button(), ]); } protected function getHeaderActions(): array { return [ Actions\CreateAction::make() ->label(trans('admin/webhook.create_action', ['action' => trans('filament-actions::create.single.modal.actions.create.label')])) ->hidden(fn () => WebhookConfiguration::count() <= 0), ]; } }