<?php

return [
    'title' => 'Payroll periods',
    'subtitle' => 'Define periods, capture frozen employee snapshots, then finalize. Finalized payroll is immutable.',
    'create_title' => 'New payroll period',
    'show_title' => 'Payroll period',
    'fields' => [
        'name' => 'Name',
        'start_date' => 'Start date',
        'end_date' => 'End date',
        'status' => 'Status',
        'processed_at' => 'Processed at',
        'finalized_at' => 'Finalized at',
        'employee' => 'Employee',
        'type' => 'Type',
        'amount' => 'Amount',
        'reason' => 'Reason',
    ],
    'status' => [
        'draft' => 'Draft',
        'processing' => 'Processing',
        'finalized' => 'Finalized',
    ],
    'adjustment_types' => [
        'bonus' => 'Bonus',
        'deduction' => 'Deduction',
        'reimbursement' => 'Reimbursement',
        'overtime' => 'Overtime',
    ],
    'actions' => [
        'new_period' => 'New period',
        'process' => 'Process payroll',
        'finalize' => 'Finalize payroll',
        'add_adjustment' => 'Add adjustment',
        'back' => 'Back to list',
    ],
    'sections' => [
        'snapshots' => 'Employee snapshots (frozen inputs)',
        'adjustments' => 'Adjustments (draft only)',
        'locked' => 'This period is finalized. Snapshots and inputs are locked.',
    ],
    'columns' => [
        'attendance_days' => 'Attendance days',
        'absent_days' => 'Absent',
        'late_days' => 'Late',
        'leave_days' => 'Leave (approved)',
        'overtime_min' => 'OT (min)',
        'adjustments' => 'Adjustments',
        'gross' => 'Gross (foundation)',
    ],
    'validation' => [
        'overlap' => 'This date range overlaps another payroll period for your organization.',
    ],
    'flash' => [
        'period_created' => 'Payroll period created.',
        'process_queued' => 'Payroll processing has been queued. Refresh shortly for snapshots.',
        'finalized' => 'Payroll finalized. Records are now locked.',
        'adjustment_added' => 'Adjustment recorded.',
    ],
    'activity' => [
        'snapshots_generated' => 'Payroll period #:id snapshots generated.',
        'finalized' => 'Payroll period #:id finalized.',
        'adjustment_created' => 'Payroll adjustment #:id (:type :amount) for employee #:employee on period #:period. :reason',
        'blocked' => [
            'attendance' => 'Blocked attendance modification overlapping finalized payroll (:from–:to).',
            'leave_sync' => 'Blocked leave attendance sync overlapping finalized payroll (:from–:to).',
            'payroll_reprocess' => 'Blocked payroll reprocess or mutation overlapping finalized payroll (:from–:to).',
        ],
    ],
    'protection' => [
        'period_locked_message' => 'This payroll period has been finalized and cannot be modified.',
        'snapshot_finalized_locked' => 'Payroll snapshots cannot be regenerated after finalization.',
        'reprocess_locked' => 'Payroll can only be reprocessed while the period is in draft.',
    ],
    'empty_periods' => 'No payroll periods yet.',
    'help_process' => 'Processing aggregates attendance, leave, overtime, and adjustments into immutable per-employee snapshots.',
    'help_finalize' => 'Finalization locks the period. Live attendance changes will not affect these snapshots.',
    'confirm_finalize' => 'Finalize this payroll period? This cannot be undone.',
];
