<?php

return [
    // Actions
    'save' => 'Save',
    'save_changes' => 'Save Changes',
    'cancel' => 'Cancel',
    'delete' => 'Delete',
    'edit' => 'Edit',
    'create' => 'Create',
    'update' => 'Update',
    'close' => 'Close',
    'confirm' => 'Confirm',
    'back' => 'Back',
    'next' => 'Next',
    'previous' => 'Previous',
    'submit' => 'Submit',
    'add' => 'Add',
    'remove' => 'Remove',
    'view' => 'View',
    'download' => 'Download',
    'upload' => 'Upload',
    'refresh' => 'Refresh',
    'reset' => 'Reset',
    'clear' => 'Clear',
    'copy' => 'Copy',
    'copied' => 'Copied!',
    'done' => 'Done',

    // States
    'loading' => 'Loading...',
    'saving' => 'Saving...',
    'deleting' => 'Deleting...',
    'processing' => 'Processing...',
    'uploading' => 'Uploading...',
    'click_to_upload' => 'Click to upload',
    'or_drag_and_drop' => 'or drag and drop',
    'please_wait' => 'Please wait...',

    // Status
    'active' => 'Active',
    'inactive' => 'Inactive',
    'pending' => 'Pending',
    'completed' => 'Completed',
    'failed' => 'Failed',
    'success' => 'Success',
    'error' => 'Error',
    'warning' => 'Warning',
    'info' => 'Info',
    'enabled' => 'Enabled',
    'disabled' => 'Disabled',
    'verified' => 'Verified',
    'unverified' => 'Unverified',
    'yes' => 'Yes',
    'no' => 'No',

    // Table
    'search' => 'Search',
    'filter' => 'Filter',
    'no_results' => 'No results found.',
    'actions' => 'Actions',
    'showing' => 'Showing :from to :to of :total results',
    'per_page' => 'Per page',
    'sort_by' => 'Sort by',
    'ascending' => 'Ascending',
    'descending' => 'Descending',

    // Confirmations
    'are_you_sure' => 'Are you sure?',
    'cannot_be_undone' => 'This action cannot be undone.',
    'confirm_delete' => 'Are you sure you want to delete this?',
    'confirm_action' => 'Are you sure you want to proceed?',

    // Messages
    'saved_successfully' => 'Saved successfully!',
    'deleted_successfully' => 'Deleted successfully!',
    'updated_successfully' => 'Updated successfully!',
    'created_successfully' => 'Created successfully!',
    'error_occurred' => 'An error occurred. Please try again.',
    'changes_saved' => 'Changes saved.',
    'no_changes' => 'No changes to save.',

    // Form Fields
    'name' => 'Name',
    'email' => 'Email',
    'password' => 'Password',
    'confirm_password' => 'Confirm Password',
    'description' => 'Description',
    'status' => 'Status',
    'date' => 'Date',
    'time' => 'Time',
    'select' => 'Select',
    'select_option' => 'Select an option',
    'optional' => 'Optional',
    'required' => 'Required',
    'role' => 'Role',
    'plan' => 'Plan',
    'category' => 'Category',
    'scopes' => 'Scopes',
    'schedule' => 'Schedule',
    'subject' => 'Subject',
    'variables' => 'Variables',
    'type' => 'Type',
    'user' => 'User',
    'info' => 'Info',
    'amount' => 'Amount',
    'joined' => 'Joined',
    'created' => 'Created',
    'last_used' => 'Last Used',

    // Table Headers
    'action' => 'Action',
    'job_name' => 'Job Name',
    'last_run' => 'Last Run',
    'next_run' => 'Next Run',
    'template' => 'Template',

    // Placeholders
    'placeholder_name' => 'John Doe',
    'placeholder_email' => 'user@example.com',
    'placeholder_password' => '••••••••',
    'placeholder_search' => 'Search...',
    'placeholder_search_users' => 'Search users by name or email...',
    'placeholder_search_plugins' => 'Search plugins by name...',
    'placeholder_search_languages' => 'Search languages by name or code...',
    'placeholder_search_templates' => 'Search templates by name or subject...',

    // Roles
    'role_admin' => 'Admin',
    'role_user' => 'User',

    // Common Text
    'by' => 'by',
    'apps' => 'apps',
    'credits' => 'credits',
    'more' => 'more',
    'platform' => 'platform',
    'platforms' => 'platforms',
    'builder' => 'builder',
    'builders' => 'builders',
    'selected' => 'selected',
    'expired' => 'Expired',
    'variables_count' => ':count variables',
    'all_permissions' => 'All Permissions',
    'configured' => '(configured)',
    'protected_in_demo' => 'Protected in demo mode',

    // Empty States
    'no_results_different_term' => 'Try a different search term',
    'click_to_install' => 'Click <strong>Upload Plugin</strong> button to install your first plugin',
    'no_api_keys_message' => 'No API keys found. Create your first API key to get started.',

    // Validation Messages
    'password_incorrect' => 'The password is incorrect.',

    // Pagination
    'first' => 'First',
    'last' => 'Last',
    'page' => 'Page',
    'of' => 'of',

    // Labels
    'note' => 'Note',

    // Time
    'today' => 'Today',
    'yesterday' => 'Yesterday',
    'tomorrow' => 'Tomorrow',
    'now' => 'Now',
    'never' => 'Never',
    'ago' => 'ago',

    // Footer
    'all_rights_reserved' => 'All Rights Reserved',

    // Misc
    'or' => 'or',
    'and' => 'and',
    'all' => 'All',
    'none' => 'None',
    'n_a' => 'N/A',
    'unknown' => 'Unknown',
    'other' => 'Other',
    'more' => 'More',
    'less' => 'Less',
    'show_more' => 'Show more',
    'show_less' => 'Show less',

    // Toast Messages - Demo Mode
    'demo_mode_disabled' => 'Settings cannot be modified in demo mode.',
    'demo_mode_modify_disabled' => 'This cannot be modified in demo mode.',
    'demo_mode_deletion_disabled' => 'Deletion is disabled in demo mode.',
    'demo_mode_action_disabled' => 'This action is disabled in demo mode.',
    'demo_mode_test_disabled' => 'Connection tests are disabled in demo mode.',
    'demo_mode_test_email_disabled' => 'Test emails cannot be sent in demo mode.',
    'demo_mode_plugin_config_disabled' => 'Plugin configuration is disabled in demo mode.',
    'demo_mode_plugin_disabled' => 'Plugin management is disabled in demo mode.',
    'demo_mode_plugin_upload_disabled' => 'Plugin uploads are disabled in demo mode.',
    'demo_mode_subscription_disabled' => 'Subscription management is disabled in demo mode.',
    'demo_admin_edit_disabled' => 'Demo admin account cannot be edited.',
    'demo_admin_delete_disabled' => 'Demo admin account cannot be deleted.',
    'admin_delete_disabled' => 'Admin account cannot be deleted.',

    // Toast Messages - Settings
    'settings_saved' => ':type settings updated successfully!',
    'logo_removed' => 'Logo removed successfully!',
    'dark_logo_removed' => 'Dark logo removed successfully!',
    'favicon_removed' => 'Favicon removed successfully!',
    'test_email_sent' => 'Test email sent successfully to :email!',
    'test_email_failed' => 'Failed to send test email: :error',
    'no_email_address' => 'No email address found. Please set admin notification email or log in.',
    'connection_successful' => 'Connection successful!',
    'connection_successful_valid' => 'Connection successful! API key is valid.',
    'connection_failed' => 'Connection failed: :error',
    'enter_api_key_first' => 'Please enter an API key first',
    'enter_api_token_first' => 'Please enter an API token first',
    'invalid_api_token' => 'Invalid API token',
    'invalid_api_key' => 'Invalid API key or connection failed',
    'enter_new_api_key' => 'Please enter a new API key to test',

    // Toast Messages - CRUD Operations
    'item_created' => ':item created successfully!',
    'item_updated' => ':item updated successfully!',
    'item_deleted' => ':item deleted successfully!',
    'item_saved' => ':item saved successfully',

    // Toast Messages - Specific Entities
    'cannot_delete_default_plan' => 'Cannot delete the default plan.',
    'cannot_delete_builder_active' => 'Cannot delete builder with active builds. Please wait for builds to complete.',
    'cannot_delete_default_builder' => 'The default builder cannot be deleted. It is a free service included with your Appy license.',
    'cannot_uninstall_core_plugin' => 'Cannot uninstall the core platform plugin.',

    // Toast Messages - Plugins
    'plugin_configured' => 'Plugin configured successfully!',
    'plugin_configure_failed' => 'Failed to configure plugin: :error',
    'plugin_uninstalled' => 'Plugin uninstalled successfully!',
    'plugin_uninstall_failed' => 'Failed to uninstall plugin: :error',
    'plugin_installed' => "Plugin ':name' installed successfully!",
    'plugin_install_failed' => 'Failed to install plugin: :error',

    // Toast Messages - Email Templates
    'template_reset' => 'Template reset to default successfully!',
    'template_reset_failed' => 'Failed to reset template.',

    // Toast Messages - Cron Jobs
    'invalid_job' => 'Invalid job selected.',
    'job_executed' => ':job executed successfully! Check the Execution Logs tab for details.',
    'job_cannot_execute' => ':job cannot be executed manually.',
    'job_execute_failed' => 'Failed to execute job: :error',

    // Toast Messages - Transactions
    'transaction_approved' => 'Transaction approved successfully.',
    'transaction_declined' => 'Transaction declined.',
    'transaction_only_pending' => 'Only pending bank transfer transactions can be :action.',
    'transaction_approve_failed' => 'Failed to approve transaction: :error',
    'transaction_decline_failed' => 'Failed to decline transaction: :error',

    // Toast Messages - API Keys
    'no_api_access' => 'Your plan does not include API access.',
    'api_key_revoked' => 'API key revoked successfully.',

    // Toast Messages - AI
    'no_own_api_key' => 'Your plan does not allow using your own API keys. Please upgrade.',
    'api_key_valid' => ':provider API key is valid!',
    'api_key_invalid' => 'Invalid :provider API key',
    'ai_token_limit' => 'You have reached your monthly AI token limit. Upgrade your plan or use your own API key.',
    'ai_token_limit_short' => 'You have reached your monthly AI token limit.',
    'conversation_deleted' => 'Conversation deleted successfully',
    'conversation_cleared' => 'Conversation cleared',

    // Toast Messages - Plans/Payments
    'already_subscribed' => 'You are already subscribed to this plan.',
    'no_payment_methods' => 'No payment methods available for :currency currency. Please contact support.',
    'no_plan_selected' => 'No plan selected. Please try again.',
    'bank_transfer_unavailable' => 'Bank Transfer payment method is not available.',
    'payment_instructions_failed' => 'Failed to load payment instructions. Please try again.',
    'pending_bank_transfer' => 'You already have a pending bank transfer. Please complete or cancel it first.',
    'bank_transfer_initiated' => 'Payment initiated. Please complete the bank transfer. You can view instructions on your billing page.',
    'payment_failed' => 'Failed to process payment. Please try again.',
    'subscribed_to_plan' => 'Successfully subscribed to :plan plan!',
    'payment_method_not_found' => 'Selected payment method not found.',
    'payment_initiate_failed' => 'Failed to initiate payment. Please try again.',
    'payment_error' => 'Payment error: :error',

    // Toast Messages - Subscription
    'subscription_created' => 'Subscription created successfully!',
    'subscription_cancelled' => 'Subscription cancelled successfully!',

    // Toast Messages - GDPR / Privacy
    'consent_preferences_saved' => 'Consent preferences saved.',
    'pending_deletion_exists' => 'You already have a pending account deletion request.',
    'deletion_scheduled' => 'Account deletion scheduled. Check your email for details.',
    'no_pending_deletion' => 'No pending deletion request found.',
    'deletion_cannot_cancel' => 'This deletion request can no longer be cancelled.',
    'deletion_cancelled' => 'Account deletion cancelled.',
    'export_rate_limited' => 'You can request a new export after :time.',
    'export_requested' => 'Data export requested. You will receive an email when it\'s ready.',

    // Toast Messages - Authentication
    'invalid_auth_provider' => 'Invalid authentication provider.',
    'provider_not_available' => ':provider login is not currently available.',
    'registration_disabled' => 'Registration is currently disabled. Please contact support.',
    'social_auth_failed' => 'Social authentication failed. Please try again.',
    'complete_step_first' => 'Please complete this step before proceeding.',

    // AI Chat Messages
    'ai_error_encountered' => 'Sorry, I encountered an error: :error',
    'ai_something_wrong' => 'Sorry, something went wrong. Please try again.',

    // Toast Messages - Notifications
    'notification_scheduled' => 'Notification scheduled successfully!',
    'notification_sent' => 'Notification sent successfully!',
    'notification_cancelled' => 'Notification cancelled successfully.',
    'notification_invalid_app' => 'Selected app is not valid or does not have push notifications enabled.',
    'notification_cannot_delete_sent' => 'Cannot delete notifications that have already been sent.',
    'resend' => 'Resend',

    // Toast Messages - Plugins
    'plugin_activated' => ':name has been activated successfully.',
    'plugin_deactivated' => ':name has been deactivated.',

    // Toast Messages - Installation
    'install_sqlite_failed' => 'Failed to create SQLite database. Please ensure the database directory is writable.',
    'install_db_connection_failed' => 'Failed to connect to database. Please check your credentials.',
    'install_failed' => 'Installation failed: :error',

    // Page Titles
    'page_title_invoice' => 'Invoice',
    'page_title_api_documentation' => 'API Documentation',

    // Invoice
    'invoice' => 'INVOICE',
    'invoice_bill_to' => 'Bill To:',
    'invoice_number' => 'Invoice Number:',
    'invoice_date' => 'Invoice Date:',
    'invoice_payment_method' => 'Payment Method:',
    'invoice_description' => 'Description',
    'invoice_amount' => 'Amount',
    'invoice_subtotal' => 'Subtotal:',
    'invoice_total' => 'Total:',
    'invoice_monthly_subscription' => ':plan Plan - Monthly Subscription',
    'invoice_yearly_subscription' => ':plan Plan - Yearly Subscription',
    'invoice_billing_period' => 'Billing Period:',
    'invoice_thank_you' => 'Thank you for your business!',
    'invoice_generated_notice' => 'This is a computer-generated invoice. No signature required.',
    'invoice_paid' => 'PAID',
    'invoice_pending' => 'PENDING',
    'invoice_failed' => 'FAILED',
];
