<?php

return [
    'breadcrumb_root' => 'Procurement',
    'po' => [
        'title' => 'Purchase orders',
        'subtitle' => 'Ordered quantities, receiving progress, and explicit lifecycle transitions.',
        'show_subtitle' => 'Operational PO view — transitions are deliberate, not silent.',
        'columns' => [
            'number' => 'PO #',
            'status' => 'Status',
            'lines' => 'Lines',
            'receipts' => 'Receipts',
        ],
        'lines' => 'Order lines',
        'receipts' => 'Goods receipts',
        'ordered' => 'Ordered',
        'posted_received' => 'Posted received',
        'remaining' => 'Remaining receivable',
        'partial' => 'Partial receive',
        'new_receipt' => 'Start goods receipt',
        'warehouse' => 'Receiving warehouse',
        'transitions' => [
            'title' => 'Lifecycle transitions',
            'approve' => 'Approve PO',
            'approve_confirm' => 'Type APPROVE_PO to confirm approval.',
            'cancel' => 'Cancel PO',
            'cancel_confirm' => 'Type CANCEL_PO to confirm cancellation (blocked if stock was posted).',
        ],
        'flash' => [
            'approved' => 'Purchase order approved.',
            'cancelled' => 'Purchase order cancelled.',
        ],
    ],
    'receipts' => [
        'title' => 'Goods receipts',
        'subtitle' => 'Draft → validate → post. Posted receipts are immutable.',
        'columns' => [
            'id' => 'Receipt',
            'po' => 'Purchase order',
            'warehouse' => 'Warehouse',
            'status' => 'Status',
        ],
        'lines' => 'Receipt lines',
        'qty_received' => 'Qty (this receipt)',
        'integrity' => 'Integrity code',
        'actions' => [
            'validate' => 'Mark validated',
            'post' => 'Post to stock',
            'post_confirm' => 'Type POST_STOCK to confirm posting (irreversible).',
        ],
        'flash' => [
            'created' => 'Draft receipt created with open lines.',
            'validated' => 'Receipt validated against PO and receiving rules.',
            'posted' => 'Receipt posted to inventory.',
        ],
    ],
    'bulk' => [
        'select_all' => 'Select page',
        'approve' => 'Approve selected',
        'cancel_drafts' => 'Cancel selected drafts',
        'validate_receipts' => 'Validate selected',
        'inline_validate' => 'Validate',
        'inline_approve' => 'Approve',
        'confirm_approve' => 'Approve :count purchase order(s)?',
        'confirm_cancel' => 'Cancel :count draft purchase order(s)? Type is irreversible for drafts without receipts.',
        'confirm_validate' => 'Validate :count goods receipt(s)?',
        'not_found' => 'Record not found.',
        'receipt_not_found' => 'Receipt not found.',
        'forbidden' => 'Not permitted for this record.',
        'cancel_draft_only' => 'Only draft POs can be cancelled in this bulk action.',
        'label_approve' => 'Bulk PO approval',
        'label_cancel_drafts' => 'Bulk draft PO cancellation',
        'label_validate_receipts' => 'Bulk receipt validation',
        'summary' => ':label — :ok ok, :fail failed.',
    ],
];
