<?php

return [
    'title' => 'Custom fields',
    'subtitle' => 'Extend employee records with tenant-specific attributes (plan-gated).',
    'create_title' => 'Create custom field',
    'edit_title' => 'Edit custom field',
    'empty' => 'No custom fields defined yet.',

    'fields' => [
        'name' => 'Label',
        'slug' => 'Key (slug)',
        'field_type' => 'Field type',
        'is_required' => 'Required',
        'is_active' => 'Status',
        'placeholder' => 'Placeholder',
        'help_text' => 'Help text',
        'validation_rules' => 'Extra validation',
        'options' => 'Options (select / radio)',
        'option_label' => 'Option label',
        'option_value' => 'Stored value',
        'sort_order' => 'Display order',
        'status' => 'Status',
    ],

    'types' => [
        'text' => 'Text',
        'textarea' => 'Textarea',
        'number' => 'Number',
        'email' => 'Email',
        'phone' => 'Phone',
        'select' => 'Select',
        'radio' => 'Radio',
        'checkbox' => 'Checkbox',
        'date' => 'Date',
        'file' => 'File',
        'url' => 'URL',
    ],

    'status' => [
        'active' => 'Active',
        'inactive' => 'Inactive',
    ],

    'placeholders' => [
        'validation_rules' => 'e.g. max:255 (max and min only are applied from this field)',
    ],

    'hints' => [
        'options' => 'Required for Select and Radio. Leave rows empty for other types.',
    ],

    'actions' => [
        'add' => 'Add field',
        'create' => 'Create',
        'update' => 'Save',
        'edit' => 'Edit',
        'deactivate' => 'Deactivate',
        'deactivate_confirm' => 'Deactivate this field? Existing values are kept but the field stops appearing on forms.',
    ],

    'flash' => [
        'created' => 'Custom field created.',
        'updated' => 'Custom field updated.',
        'deactivated' => 'Custom field deactivated.',
    ],

    'validation' => [
        'options_required' => 'Add at least one option for select or radio fields.',
        'limit_reached' => 'Your plan custom field limit has been reached.',
        'feature_disabled' => 'Custom fields are not enabled on your plan. Upgrade to use this feature.',
        'invalid_order' => 'Invalid field order.',
    ],

    'plan_locked' => 'Custom fields are not included in your current plan.',

    'employee_section' => 'Additional fields',
    'file_stored' => 'A file is already stored. Upload a new file to replace it.',
];
