visible(fn (): bool => $this->tableHasRecords()), ]; } protected function getTableEmptyStateActions(): array { return [ BackupScheduleResource::makeCreateAction(), ]; } private function tableHasRecords(): bool { return $this->getTableRecords()->count() > 0; } }