sync( $this->getTableFiltersSessionKey(), request: request(), tenantFilterName: null, ); parent::mount(); } protected function getHeaderActions(): array { return [ BackupScheduleResource::makeCreateAction() ->visible(fn (): bool => $this->tableHasRecords()), ]; } protected function getTableEmptyStateActions(): array { return [ BackupScheduleResource::makeCreateAction(), ]; } private function tableHasRecords(): bool { return $this->getTableRecords()->count() > 0; } }