<?php

return [
    'title' => 'Operational control center',
    'subtitle' => 'Integrity, receiving failures, stale workflows, and inventory reconciliation — operational visibility, not KPIs.',

    'sections' => [
        'failed_receipts' => 'Receipt failures (lifecycle)',
        'quarantined_receipts' => 'Receipts with quarantined lines',
        'posting_signals' => 'Posting & validation signals (recent)',
        'over_receive' => 'Over-receive attempts (signals)',
        'stale_drafts' => 'Stale draft receipts',
        'stale_validated' => 'Validated but not posted (stale)',
        'integrity' => 'Integrity audit (active)',
        'reconciliation' => 'Inventory reconciliation',
        'escalation' => 'Escalation severity reference',
        'actions' => 'Operational actions',
    ],

    'columns' => [
        'receipt' => 'Receipt',
        'po' => 'Purchase order',
        'status' => 'Status',
        'updated' => 'Updated',
        'severity' => 'Severity',
        'category' => 'Category',
        'code' => 'Code',
        'summary' => 'Summary',
        'correlation' => 'Correlation',
        'when' => 'When',
        'ack' => 'Acknowledge',
    ],

    'integrity' => [
        'severity' => 'Overall severity',
        'cross_po' => 'Active cross-PO lines',
        'deleted_poi' => 'Deleted PO line references',
        'missing_poi' => 'Missing PO item references',
        'quarantined_lines' => 'Quarantined lines (total)',
    ],

    'reconciliation' => [
        'drift' => 'Ledger vs projection drift',
        'drift_yes' => 'Drift detected — review before posting.',
        'drift_no' => 'No drift detected (read-only check).',
        'rebuild' => 'Rebuild projections from ledger',
        'rebuild_confirm' => 'Type REBUILD_PROJECTIONS to confirm (writes projections).',
        'check' => 'Run drift check',
        'check_confirm' => 'Type CHECK_DRIFT to confirm (read-only; logs result).',
    ],

    'stale' => [
        'draft_help' => 'Drafts older than :hours h without validation.',
        'validated_help' => 'Validated receipts older than :hours h without post.',
    ],

    'signals' => [
        'empty' => 'No unacknowledged signals in the lookback window.',
        'filter_hint' => 'Includes posting failures, duplicates, over-receive, integrity, and operator actions.',
    ],

    'retry' => [
        'title' => 'Failed posting retry',
        'body' => 'Automatic retry is not offered here. Open the receipt, resolve the root cause, then use the normal posting flow or support procedures.',
    ],

    'flash' => [
        'event_acknowledged' => 'Signal acknowledged.',
        'rebuild_done' => 'Projections rebuilt from ledger.',
        'drift_detected' => 'Drift check: mismatch recorded.',
        'no_drift' => 'Drift check: projections align with ledger.',
    ],
];
