@if (isSettingsPage()) {
{{ users().length | number }} {{ "admin.tabs.users" | transloco }}
{{ instanceAdmins() | number }} {{ "admin.roles.instanceAdmin" | transloco }}
{{ totalSites() | number }} {{ "admin.tabs.sites" | transloco }}
{{ activeTeams() | number }} {{ "admin.tabs.teams" | transloco }}
{{ "admin.tabs.users" | transloco }} {{ "admin.tabs.sites" | transloco }} {{ "admin.tabs.teams" | transloco }} {{ "admin.tabs.globalFilters" | transloco }}

{{ "admin.users.title" | transloco }}

{{ users().length | number }} {{ "admin.tabs.users" | transloco }}
@if (deleteUserBlock() || userMfaStatus() || userActionStatus()) {
@if (deleteUserBlock()) { } @if (userMfaStatus(); as status) { } @if (userActionStatus(); as status) { }
}
{{ "common.columns.email" | transloco }} {{ "common.columns.role" | transloco }} {{ "common.columns.created" | transloco }} {{ "common.columns.actions" | transloco }}
{{ user.email }} @if (isInstanceOwner(user)) { {{ "admin.roles.instanceOwner" | transloco }} }

{{ "admin.sites.title" | transloco }}

{{ sites().length | number }} {{ "admin.tabs.sites" | transloco }}
@if (siteActionStatus(); as status) {
}
{{ "common.columns.domain" | transloco }} {{ "common.columns.owner" | transloco }} {{ "common.columns.created" | transloco }} {{ "common.columns.actions" | transloco }} {{ site.domain }} {{ siteOwnerEmail(site) }}

{{ "admin.teams.title" | transloco }}

{{ teams().length | number }} {{ "admin.tabs.teams" | transloco }}
@if (teamActionStatus(); as status) {
}
{{ "common.columns.name" | transloco }} {{ "common.columns.members" | transloco }} {{ "common.columns.sites" | transloco }} {{ "common.columns.status" | transloco }} {{ "common.columns.actions" | transloco }} {{ team.name }} {{ team.member_count }} {{ team.site_count }} @if (team.is_default) { } @else if (team.is_archived) { } @else { }
@if (activeSettingsTab() === "globalFilters") {

{{ "admin.exclusions.title" | transloco }}

}
} @else {
{{ "admin.system.health.title" | transloco }}
{{ "admin.system.overview.version" | transloco }} {{ systemInfo()?.version || "-" }}
{{ "admin.system.ingest.hits" | transloco }} {{ recentHits() | number }}
{{ "admin.system.storage.diskUsage" | transloco }} {{ diskUsedPercent() }}%
{{ "admin.system.console.tabs.runtime" | transloco }} {{ "admin.system.console.tabs.operations" | transloco }} @if (canViewActivation()) { {{ "admin.system.console.tabs.activation" | transloco }} } {{ "admin.system.console.tabs.audit" | transloco }}
@if (isManagedCloud()) { {{ "admin.system.console.cloudStatus" | transloco }} } @if (systemHealth(); as health) {
{{ "admin.system.health.status" | transloco }}
{{ "admin.system.health.database" | transloco }}
{{ "admin.system.health.workers" | transloco }}
{{ "admin.system.health.isLeader" | transloco }}
} @else if (isLoadingHealth()) {
{{ "common.loading" | transloco }}
} @else { }

{{ "admin.system.health.ip2locationAttribution" | transloco }} IP2Location

@if (systemSearchConsole(); as searchConsole) { } @if (systemSearchConsole(); as searchConsole) {
{{ "admin.system.searchConsole.credentials" | transloco }}
{{ "admin.system.searchConsole.worker" | transloco }}
{{ "admin.system.searchConsole.sync" | transloco }}
@if (searchConsole.last_attempt_at) {
{{ "admin.system.searchConsole.lastAttempt" | transloco }}
} @if (searchConsole.last_success_at) {
{{ "admin.system.searchConsole.lastSuccess" | transloco }}
} @if (searchConsole.next_retry_at) {
{{ "admin.system.searchConsole.nextRetry" | transloco }}
}
{{ "admin.system.searchConsole.connectedTeams" | transloco }} {{ searchConsole.connected_teams | number }}
{{ "admin.system.searchConsole.mappedSites" | transloco }} {{ searchConsole.mapped_sites | number }}
{{ "admin.system.searchConsole.inFlight" | transloco }} {{ searchConsole.pending_syncs + searchConsole.running_syncs | number }}
{{ "admin.system.searchConsole.issues" | transloco }} {{ searchConsoleSyncIssueCount() | number }}
} @else if (isLoadingSearchConsole()) {
{{ "common.loading" | transloco }}
} @else { }
@if (systemAIStatus(); as ai) { } @if (systemAIStatus(); as ai) {
{{ "admin.system.ai.configuration" | transloco }} {{ aiProviderModelLabel() }} {{ "admin.system.ai.summary." + aiSummaryKey() | transloco }}
{{ "admin.system.ai.requests" | transloco }} {{ aiRequestUsageMetric() }}
{{ "admin.system.ai.budgetWindow" | transloco }}: {{ formatMinutes(ai.budget_window_minutes) }}
{{ "admin.system.ai.tokens" | transloco }} {{ aiTokenUsageMetric() }}
{{ "admin.system.ai.budgetWindow" | transloco }}: {{ formatMinutes(ai.budget_window_minutes) }}
{{ "admin.system.ai.configMode" | transloco }}
{{ "admin.system.ai.configModes." + ai.config_mode | transloco }}
{{ "admin.system.ai.provider" | transloco }}
{{ ai.provider || "-" }}
{{ "admin.system.ai.model" | transloco }}
{{ ai.model || "-" }}
@if (ai.last_attempt_at) {
{{ "admin.system.ai.lastAttempt" | transloco }}
} @if (ai.last_success_at) {
{{ "admin.system.ai.lastSuccess" | transloco }}
} @if (ai.last_error_category) {
{{ "admin.system.ai.lastError" | transloco }}
{{ ai.last_error_category }}
}
} @else if (isLoadingAIStatus()) {
{{ "common.loading" | transloco }}
} @else { }
@if (systemInfo(); as info) {
{{ "admin.system.overview.version" | transloco }}
{{ info.version || "-" }}
{{ "admin.system.overview.uptime" | transloco }}
{{ info.uptime || "-" }}
{{ "admin.system.overview.runtimeMode" | transloco }}
{{ info.runtime_mode || "-" }}
{{ "admin.system.overview.publicUrl" | transloco }}
{{ info.public_url || "-" }}
} @else if (isLoadingSystem()) {
{{ "common.loading" | transloco }}
}
@for (feature of enabledFeatureRows(); track feature.label) {
{{ feature.label }} @if (feature.detail) {
{{ feature.detail }} }
} @empty {
{{ "admin.system.console.noFeatures" | transloco }}
}
@if (systemStorage(); as storage) {
{{ "admin.system.storage.sharedDb" | transloco }}
{{ storage.shared_db_path }}
{{ "admin.system.storage.sharedDbSize" | transloco }}
{{ formatBytesValue(storage.shared_db_bytes) }}
{{ "admin.system.storage.dataPath" | transloco }}
{{ storage.data_path }}
{{ "admin.system.storage.diskAvailable" | transloco }}
{{ formatBytesValue(storage.disk_available_bytes) }} / {{ formatBytesValue(storage.disk_total_bytes) }}
{{ "admin.system.storage.columns.tenant" | transloco }} {{ "admin.system.storage.columns.size" | transloco }} {{ "admin.system.storage.columns.path" | transloco }} {{ db.name }} {{ formatBytesValue(db.bytes) }} {{ db.path }} {{ "admin.system.console.noTenantDbs" | transloco }}
} @else if (isLoadingStorage()) {
{{ "common.loading" | transloco }}
}
@if (systemIngest(); as ingest) {
{{ "admin.system.ingest.hits" | transloco }} {{ ingest.recent_hits | number }}
{{ "admin.system.ingest.events" | transloco }} {{ ingest.recent_events | number }}
{{ "admin.system.ingest.rejections" | transloco }} {{ ingest.recent_rejections | number }}
{{ "admin.system.ingest.spam" | transloco }} {{ ingest.recent_spam | number }}
} @else if (isLoadingIngest()) {
{{ "common.loading" | transloco }}
}
@if (systemCaches(); as caches) { } @if (isLoadingCaches() && !systemCaches()) {
{{ "common.loading" | transloco }}
} @else {
{{ "admin.system.caches.columns.cache" | transloco }} {{ "admin.system.caches.columns.size" | transloco }} {{ "admin.system.caches.columns.maxSize" | transloco }} {{ "admin.system.caches.columns.ttl" | transloco }} {{ "admin.system.console.pressure" | transloco }} {{ row.name }} {{ row.size | number }} {{ row.maxSize | number }} {{ row.ttl }} {{ row.pressure }}%
}
@if (activeAdminTab() === "operations") {
@if (systemBackups(); as backups) {
{{ "admin.system.backups.enabled" | transloco }}
{{ "admin.system.backups.configPath" | transloco }}
{{ backups.config_path || ("admin.system.backups.disabled" | transloco) }}
{{ "admin.system.backups.interval" | transloco }}
{{ formatMinutes(backups.interval_min) }}
{{ "admin.system.backups.retention" | transloco }}
{{ backups.retention }}
{{ "admin.system.backups.lastBackup" | transloco }}
@if (backups.last_backup) { } @else { - }
{{ "admin.system.backups.recentFailures" | transloco }}
{{ backups.recent_failures }}
@if (backups.last_error) { } } @else if (isLoadingBackups()) {
{{ "common.loading" | transloco }}
}
@if (systemSpam(); as spam) {
{{ "admin.system.spam.ruleCount" | transloco }}
{{ spam.rule_count | number }}
{{ "admin.system.spam.autoUpdate" | transloco }}
{{ "admin.system.spam.lastRefresh" | transloco }}
@if (spam.last_refresh) { } @else { - }
{{ "admin.system.spam.dbPath" | transloco }}
{{ spam.db_path }}
@if (spam.last_error) { } @if (spamActionStatus(); as status) { } } @else if (isLoadingSpam()) {
{{ "common.loading" | transloco }}
}
@if (systemImportCleanup(); as cleanup) {
{{ "admin.system.importCleanup.enabled" | transloco }}
{{ "admin.system.importCleanup.retention" | transloco }}
{{ cleanup.retention_days | number }}
{{ "admin.system.importCleanup.staleImports" | transloco }}
{{ cleanup.stale_imports | number }}
{{ "admin.system.importCleanup.staleFiles" | transloco }}
{{ cleanup.stale_files | number }}
{{ "admin.system.importCleanup.lastRun" | transloco }}
@if (cleanup.last_run) { } @else { - }
{{ "admin.system.importCleanup.lastCleaned" | transloco }}
{{ cleanup.last_cleaned_files | number }} / {{ formatBytesValue(cleanup.last_cleaned_bytes) }}
@if (cleanup.last_error) { } @if (importCleanupActionStatus(); as status) { } } @else if (isLoadingImportCleanup()) {
{{ "common.loading" | transloco }}
}
@if (systemMail(); as mail) {
{{ "admin.system.mail.configured" | transloco }}
{{ "admin.system.mail.driver" | transloco }}
{{ mail.driver || "-" }}
{{ "admin.system.mail.host" | transloco }}
{{ mail.host || "-" }} @if (mail.port) { :{{ mail.port }} }
{{ "admin.system.mail.encryption" | transloco }}
{{ mail.encryption || "-" }}
{{ "admin.system.mail.fromAddress" | transloco }}
{{ mail.from_name }} <{{ mail.from_address }}>
{{ "admin.system.mail.passwordSet" | transloco }}
@if (mail.last_test_at) {
{{ "admin.system.mail.lastTest" | transloco }}
@if (mail.last_test_ok !== undefined) { }
}
@if (mailTestResult(); as result) { } @if (canRunMaintenance() && mail.configured) {
@if (mailTestRecipient.touched && mailTestRecipient.invalid) { {{ "admin.system.mail.recipientInvalid" | transloco }} }
} } @else if (isLoadingMail()) {
{{ "common.loading" | transloco }}
}
}
@if (activeAdminTab() === "activation" && canViewActivation()) {

{{ "admin.system.activation.title" | transloco }}

{{ "admin.system.activation.subtitle" | transloco }}
@if (activationCopyStatus() === "success") {
} @else if (activationCopyStatus() === "error") {
}
{{ "admin.system.activation.metrics.liveSites" | transloco }} {{ activationLiveSites() | number }}
{{ "admin.system.activation.metrics.loadedRows" | transloco }} {{ activationRows().length | number }}
{{ "admin.system.activation.metrics.totalRows" | transloco }} {{ systemActivation()?.total ?? 0 | number }}
{{ "admin.system.activation.columns.team" | transloco }} {{ "common.columns.domain" | transloco }} {{ "common.columns.status" | transloco }} {{ "admin.system.activation.columns.lastHit" | transloco }} {{ "admin.system.activation.columns.lastEvent" | transloco }} {{ "admin.system.activation.columns.hits24h" | transloco }} {{ "admin.system.activation.columns.hits7d" | transloco }} {{ "admin.system.activation.columns.events7d" | transloco }} {{ "common.columns.actions" | transloco }}
{{ row.team_name }}
{{ row.owner_email || ("common.unknown" | transloco) }}
{{ row.active_sites | number }} / {{ row.sites_count | number }} {{ "common.columns.sites" | transloco }}
{{ row.site_domain }}
@if (row.plan_name || row.plan_code || row.cloud_region) {
{{ row.plan_name || row.plan_code || "-" }} ยท {{ row.cloud_region || "-" }}
} @if (row.last_hit_at) { } @else { - } @if (row.last_event_at) { @if (row.last_event_name) {
{{ row.last_event_name }}
} } @else { - } {{ row.hits_last_24h | number }} {{ row.hits_last_7d | number }} {{ row.events_last_7d | number }}
{{ "admin.system.activation.empty" | transloco }}
{{ "admin.system.activation.pagination" | transloco: { loaded: activationRows().length, total: systemActivation()?.total ?? 0 } }}
}
@if (activeAdminTab() === "audit") {

{{ "admin.system.audit.title" | transloco }}

}
}