<?php

return [
    'console' => 'Operator console',
    'badge' => 'Admin',
    'to_portal' => 'To customer portal',

    'nav_update_waiting' => 'Update available',
    'nav_group' => [
        'attention' => 'Needs you',
        'customers' => 'Customers',
        'fleet' => 'Fleet',
        'operations' => 'Operations',
        'billing' => 'Billing',
        'post' => 'Mail',
        'system' => 'System',
    ],

    'nav' => [
        'setup' => 'Setup',
        'proxy_hosts' => 'Hostnames',
        'dpa' => 'Processing agreement',
        'mail_preview' => 'Mail preview',
        'inbox' => 'Inbox',
        'mail_log' => 'Mail sent',
        'templates' => 'Mail templates',
        'overview' => 'Overview',
        'customers' => 'Customers',
        'instances' => 'Instances',
        'hosts' => 'Hosts',
        'datacenters' => 'Datacenters',
        'plans' => 'Plans',
        'provisioning' => 'Provisioning',
        'maintenance' => 'Maintenance',
        'incidents' => 'Incidents',
        'capacity' => 'Capacity',
        'vpn' => 'VPN',
        'finance' => 'Finance',
        'invoices' => 'Invoices',
        'payment_problems' => 'Payment problems',
        'revenue' => 'Revenue',
        'mail' => 'Email',
        'mail_pace' => 'Send pace',
        'integrations' => 'Integrations',
        'readiness' => 'Readiness',
        'settings' => 'Settings',
        'roles' => 'Roles',
        'open_work' => 'Open work',
        'two_factor_setup' => 'Two-factor login',
    ],

    'version_hint' => 'Running version and commit — what last deployed successfully.',

    'overview_title' => 'Fleet overview',
    'overview_sub' => 'The whole platform at a glance.',
    'systems_ok' => 'Nothing reported',
    'systems_notices' => '{1} :n notice|[2,*] :n notices',

    'kpi' => [
        'customers' => 'Customers',
        'customers_suspended' => ':n suspended',
        'instances' => 'Active instances',
        'instances_of' => 'of :n in total',
        'hosts' => 'Active hosts',
        'hosts_of' => 'of :n in total',
        'mrr' => 'MRR',
        'mrr_sub' => 'Net per month, from live contracts',
    ],

    'new_instances' => 'New instances',
    'new_instances_sub' => 'Created per month, last 12 months.',
    'no_data_yet' => 'No data yet.',
    'host_load' => 'Committed per host',
    // "Committed", not "used": the quota a customer bought is what the host
    // must be able to honour. Real disk usage is not collected, so it is not
    // claimed here.
    'host_load_sub' => 'Committed storage against capacity.',
    // What the shop is promising right now, per package. Same source as the
    // price sheet and the customer's own overview.
    'delivery_title' => 'Delivery',
    'delivery_sub' => 'What a customer is promised at checkout — from free capacity, not from a fixed sentence.',
    'delivery_link' => 'Capacity',
    'host_no_capacity' => 'Capacity unknown',
    'no_hosts_yet' => 'No hosts onboarded yet.',
    'active_runs' => 'Open provisioning',
    'no_open_runs' => 'No open runs.',
    'no_notices' => 'No open notices.',
    'view_all' => 'View all',
    'alerts' => 'Notices',
    'run_detail' => 'Current run',
    'run_attempt' => 'Attempt :n',
    'run_done' => ':done of :total complete',
    'run_current' => 'Current step',
    'run_next' => 'Up next',

    'run_status' => [
        'pending' => 'Pending',
        'running' => 'Running',
        'waiting' => 'Waiting',
        'paused' => 'Paused',
        'failed' => 'Failed',
        'completed' => 'Completed',
    ],

    'notice' => [
        'mail_not_delivering' => 'MAIL_MAILER is set to ":mailer" — no mail is delivered to anybody, it all goes to storage/logs. The mailbox test still reports success, because it builds its own transport.',
        'site_hidden' => 'The website and the customer portal are hidden — a visitor outside the VPN gets the placeholder page (503). The switch is under Settings → Installation.',
        'no_site_host' => 'SITE_HOST is not set. The website therefore also answers on :app, and links on it point there instead of at its own name.',
        'no_capacity' => 'No host has room for “:plan” any more — the package needs :needs GB and the roomiest host has :largest GB. A paid order for it would fail at reservation.',
        'failed_runs' => ':n failed provisioning run(s).',
        'host_error' => 'Host :host reports an error.',
        'host_silent' => 'Host :host has not checked in for over :minutes minutes.',
        'monitoring_down' => ':n monitored instance(s) unreachable.',
        'readiness_blocking' => '{1} :n item on the readiness page blocks going live.|[2,*] :n items on the readiness page block going live.',
        // Host AND instance blocks together — there is no single list of
        // both kinds, so this links to whichever list currently applies
        // (see Overview::notices()).
        'security_blocks' => ':n active security block(s) — addresses locked out after failed sign-in attempts.',
    ],

    // Shared between the host detail page (hosts.manage) and the customer
    // page (instances.manage) — the same kind of block, two places, one
    // wording instead of two that drift apart.
    'security_block' => [
        'title' => 'Security blocks',
        'empty' => 'No blocks.',
        'col_ip' => 'Address',
        'col_blocked' => 'Blocked since',
        'col_expires' => 'Expires',
        'col_attempts' => 'Failed attempts',
        'col_status' => 'Status',
        'col_actions' => 'Action',
        'status_active' => 'Active',
        'status_released' => 'Lifted',
        'status_expired' => 'Expired',
        'release' => 'Lift',
        'released' => 'Block lifted.',
        'released_pending' => 'Block lifted. The host is not reachable right now — the firewall will follow as soon as it answers again.',
        'release_title' => 'Lift this block?',
        'release_body' => 'Address :ip will be allowed through again immediately.',
        'release_confirm' => 'Lift',
    ],

    'customers_sub' => 'All customers and their plans.',
    'customers_empty' => 'No customers yet.',
    'impersonate' => 'Connect',
    'suspend' => 'Suspend',
    'reactivate' => 'Reactivate',
    'customer_suspended' => 'Customer suspended.',
    'customer_reactivated' => 'Customer reactivated.',
    'grant_action' => 'Grant',
    'granted_badge' => 'Granted',
    'pending_change' => 'Moves to :plan on :date',
    'by_plan' => 'By plan',
    'instances_sub' => 'All provisioned cloud instances.',

    // The only place where the answer from the cancellation dialogue
    // (instances.export_wish) has a reader at all — see
    // App\Livewire\Admin\Instances::render(). The export itself is not built;
    // the section says exactly that rather than implying a queue that does
    // not exist.
    'export_wish' => [
        'title' => 'Data export ordered',
        'sub' => 'Explicitly asked for when cancelling. The export is still done by hand — this says for whom, and by when.',
        'col_ends' => 'Term ends',
        'over' => 'due',
    ],
    'instances_label' => 'instances',
    'hosts_sub' => 'Proxmox hosts and capacity.',
    'storage_used' => 'Storage used',
    'provisioning_sub' => 'Running and completed provisioning.',
    'revenue_sub' => 'Platform revenue metrics.',
    'mrr_by_plan' => 'MRR by plan',
    'no_payments_yet' => 'No payments recorded yet.',
    'recent_payments' => 'Recent payments',

    'instances_empty' => 'No instances yet.',

    'col' => [
        'customer' => 'Customer',
        'plan' => 'Plan',
        'mrr' => 'MRR',
        'status' => 'Status',
        'address' => 'Address',
        'quota' => 'Quota',
        'subdomain' => 'Subdomain',
        'host' => 'Host',
        'storage' => 'Storage',
        'step' => 'Step',
        'attempt' => 'Attempt',
        'actions' => 'Actions',
    ],

    'status' => [
        'reserving' => 'Reserving',
        'failed' => 'Failed',
        'cancellation_scheduled' => 'Cancellation scheduled',
        'ended' => 'Ended',
        'active' => 'Active',
        'provisioning' => 'Provisioning',
        'suspended' => 'Suspended',
        'closed' => 'Closed',
        'warning' => 'Warning',
    ],

    'retry' => 'Retry',
    'restart' => 'Restart',
    'restart_title' => 'Restart this instance?',
    'restart_body' => ':address will be shut down cleanly and started again. The customer is unreachable for a few minutes and every signed-in user is disconnected.',
    'restart_cancel' => 'Cancel',
    'restart_confirm' => 'Restart now',
    'restart_started' => 'The restart has begun.',
    'restart_busy' => 'Work is already under way on this instance — no restart was started.',
    'restart_denied' => 'You are not allowed to do that.',
    'restart_pending' => 'Restart pending',
    'restart_pending_hint' => 'New CPU/RAM are configured and take effect at the VM’s next restart.',
    'run_retried' => 'Run is being retried.',
    'run_started' => 'Started',
    'run_activity' => 'Last activity',
    'run_stale_hint' => 'No progress for over 2 minutes — the run may be stuck (this environment has no real infrastructure).',
    'state_stale' => 'No activity',
    'state_running' => 'Running',
    'state_done' => 'Done',
    'state_failed' => 'Failed',
    'no_runs' => 'No provisioning runs right now.',

    'rev' => [
        'mrr' => 'MRR',
        'mrr_sub' => 'Net per month, from live contracts',
        'arr' => 'ARR (projected)',
        // Explicitly a projection: MRR x 12, not measured turnover.
        'arr_sub' => 'MRR times twelve — not measured annual turnover',
        'arpu' => 'Per customer',
        'arpu_sub' => 'MRR divided by paying customers',
        'contracts' => 'Live contracts',
        'contracts_sub' => 'Contracts with status active',
        'granted' => 'Granted contracts',
        'granted_sub' => 'Gifted or discounted — not counted in MRR/ARPU',
    ],

    'grant' => [
        'title' => 'Grant a package or module',
        'existing_title' => 'Existing grants',
        'kind_package' => 'Package',
        'kind_addon' => 'Module',
        'choose' => 'Please choose',
        'plan' => 'Package',
        'term' => 'Term',
        'monthly' => 'Monthly',
        'yearly' => 'Yearly',
        'datacenter' => 'Datacenter',
        'bonus_title' => 'Extra quota (optional)',
        'bonus_hint' => 'Beyond what the package already includes. Leave blank for no bonus.',
        'bonus_quota' => 'Storage (GB)',
        'bonus_seats' => 'Seats',
        'bonus_traffic' => 'Traffic (GB)',
        'addon' => 'Module',
        'quantity' => 'Quantity',
        'price' => 'Price the customer pays',
        'catalogue_price' => 'Regular price: :price',
        'until_label' => 'Limited until',
        'until_hint' => 'Leave blank for unlimited. Nothing lapses automatically — the console flags it in good time.',
        'note' => 'Note (internal, e.g. the reason for the grant)',
        'free' => 'Free',
        'by_on' => 'Granted by :who on :when',
        'until' => 'Limited until :date',
        'unlimited' => 'Unlimited',
        'ending_soon' => 'ending soon',
        'lapsed' => 'past due',
        'cancel' => 'Cancel',
        'submit' => 'Grant',
        'granted' => 'Grant saved.',
        'price_invalid' => 'Please enter a valid amount.',
        'no_subscription' => 'This customer has no active contract.',
    ],
];
