makeCreateAction()]; } protected function getTableEmptyStateActions(): array { return [$this->makeCreateAction()]; } private function makeCreateAction(): Actions\CreateAction { return Actions\CreateAction::make() ->label('New backup schedule') ->disabled(fn (): bool => ! BackupScheduleResource::canCreate()) ->tooltip(fn (): ?string => BackupScheduleResource::canCreate() ? null : 'You do not have permission to create backup schedules.'); } }