<?php

return [
    'title' => 'AI Assistant',
    'quota' => ':used/:limit prompts used',
    'welcome' => 'Ask in simple language about customers, billing, MikroTik, and OLT. I will request confirmation before changing or deleting anything.',
    'setup_title' => 'Setup required:',
    'setup_message' => 'Add OPENAI_API_KEY to the server .env file and clear the configuration cache.',
    'placeholder' => 'Example: Show unpaid customers whose lines are active',
    'send' => 'Send',
    'capabilities_title' => 'Safe capabilities',
    'security_note' => 'Admin/Super Admin only. :limit prompts daily. Arbitrary SQL, shell, and code execution are disabled.',
    'confirm' => 'Confirm & Execute',
    'completed' => 'Completed',
    'action_failed' => 'Action failed',
    'request_failed' => 'AI request failed',
    'daily_limit' => 'Today’s :limit AI prompt limit has been reached. You can use it again tomorrow.',
    'not_configured' => 'OPENAI_API_KEY is not configured. Add it to the server .env file.',
    'response_invalid' => 'The AI response could not be understood. Please try a shorter request.',
    'confirmation_required' => 'Your confirmation is required to execute this action.',
    'confirmation_expired' => 'The confirmation has expired or has already been used.',
    'csv_handoff' => 'Upload the CSV file using the secure importer on the Customer List page.',
    'test_queued' => 'The connection test has been added to the background queue.',
    'cached_matching' => 'Cached matching data was used; no synchronous router request was sent.',
    'field_required' => ':field is required.',
    'customer_created' => 'Customer created successfully.', 'customer_updated' => 'Customer updated successfully.',
    'customer_deleted' => 'Customer :code deleted successfully.', 'mikrotik_created' => 'MikroTik added and synchronization queued.',
    'mikrotik_resync' => 'MikroTik profile and data resynchronization queued.', 'olt_diagnostic' => 'OLT connection diagnosis queued.',
    'fix_target_required' => 'A mikrotik_id or olt_id is required for a safe fix.',
    'provider_quota' => 'The AI provider quota is unavailable. Add API billing/credit or use a key from an active project. This failed request was not counted.',
    'provider_rate' => 'The AI provider is temporarily rate-limited. Please try again shortly. This failed request was not counted.',
    'provider_failed' => 'The AI provider could not complete the request. Please try again. This failed request was not counted.',
    'fallback_used' => 'The provider quota is unavailable, so the safe local command parser handled this read-only request.',
    'capabilities' => [
        'customer' => 'Customer create/update/delete', 'csv' => 'CSV customer import handoff',
        'unpaid' => 'Unpaid active customers', 'billing' => 'Bill/payment/due report',
        'mikrotik' => 'MikroTik add/test', 'matching' => 'PPPoE matching diagnosis',
        'sync' => 'MikroTik sync diagnosis', 'olt' => 'OLT connection diagnosis',
        'fix' => 'Confirmed safe resync fixes',
    ],
];
