<?php

return [
    'title' => 'Billing Rules',
    'subtitle' => 'Multi-criteria rules that decide which billing integrator handles each invoice event.',
    // PRC-304: operational settings card
    'settings_title' => 'Operational Settings',
    'settings_enable_automatic' => 'Enable Automatic E-Billing',
    'settings_enable_automatic_help' => 'Master toggle for automatic e-billing dispatch. When disabled, rules are ignored.',
    'settings_default_module' => 'Default Module (No-Rule Fallback)',
    'settings_auto_process_delay' => 'Auto Process Delay',
    'settings_retry_failed_jobs' => 'Retry Failed Jobs',
    'settings_max_retry_attempts' => 'Max Retry Attempts',
    'settings_notify_on_failure' => 'Notify Admin on Failure',
    'settings_failure_notification_email' => 'Failure Notification Email',
    'settings_saved' => 'E-Billing operational settings saved.',
    'create' => 'Create Rule',
    'edit' => 'Edit Rule',
    'created' => 'Billing rule created successfully.',
    'updated' => 'Billing rule updated successfully.',
    'deleted' => 'Billing rule deleted.',
    'no_rules' => 'No billing rules defined yet.',
    'delete_confirm' => 'Are you sure you want to delete this rule?',

    'fields_name' => 'Name',
    'fields_priority' => 'Priority',
    'fields_priority_help' => 'Lower number = higher priority (evaluated first).',
    'fields_active' => 'Active',
    'fields_events' => 'Events',
    'fields_action' => 'Action',
    'fields_module' => 'Billing Module',
    'fields_delay_days' => 'Dispatch Delay (days)',
    'fields_delay_help' => '0 = dispatch immediately. N = wait N days after the event before calling the integrator.',
    'fields_conditions' => 'Conditions',

    'events_paid' => 'Invoice Paid',
    'events_refunded' => 'Invoice Refunded',
    'events_cancelled' => 'Invoice Cancelled',

    'actions_dispatch' => 'Dispatch to module',
    'actions_skip' => 'Skip (block dispatch)',

    'conditions_section_title' => 'Match Conditions',
    'conditions_add_condition' => '+ Condition',
    'conditions_add_group' => '+ Group',
    'conditions_group_AND' => 'AND',
    'conditions_group_OR' => 'OR',
    'conditions_remove' => 'Remove',

    'fields_label_client_country' => 'Client country',
    'fields_label_client_is_company' => 'Is company',
    'fields_label_client_client_group_id' => 'Client group',
    'fields_label_client_language' => 'Client language',
    'fields_label_invoice_total_amount' => 'Invoice total',
    'fields_label_invoice_currency' => 'Invoice currency',
    'fields_label_invoice_has_tax' => 'Invoice has tax',
    'fields_label_invoice_has_product_type' => 'Invoice has product type',
    'fields_label_invoice_product_ids' => 'Invoice product IDs',
    'fields_label_invoice_product_categories' => 'Invoice product categories',

    'test_section_title' => 'Test Rule',
    'test_invoice_id_label' => 'Invoice ID',
    'test_button' => 'Test',
    'test_match_yes' => 'Matches ✓',
    'test_match_no' => 'Does not match ✗',

    'fallback_duplicate_event' => 'An active fallback rule already exists for the :event event.',

    'fallback_label' => 'This is a fallback (catch-all) rule',
    'fallback_help' => 'A fallback rule fires when no other rule matches. Conditions are ignored.',
    'fallback_badge' => 'Fallback',
    'overlap_warning' => 'Possible rule overlap',
    'overlap_covered_by' => '"{name}" ({module}) already covers this criteria — check priority order.',
];
