<?php

/**
 * Success / Info / General messages (non-error)
 * - For API normal response "message" field
 * - Use common keys and resource-specific nested keys
 * - Example: return ApiResponse::success($data, __('message.created'));
 */
return [

    // Common (CRUD / convenience)
    'fetched' => 'Fetched successfully.',
    'created' => 'Created successfully.',
    'updated' => 'Updated successfully.',
    'deleted' => 'Deleted successfully.',
    'restored' => 'Restored successfully.',
    'toggled' => 'Status updated successfully.',
    'bulk_upsert' => 'Bulk save completed successfully.',
    'reordered' => 'Reorder completed successfully.',
    'no_changes' => 'No changes detected.',

    // Auth / Session
    'login_success' => 'Login successful.',
    'logout_success' => 'You have been logged out.',
    'signup_success' => 'Sign-up completed successfully.',

    // Tenant / Context
    'tenant_switched' => 'Active tenant has been switched.',

    // Resource-specific details
    'product' => [
        'created' => 'Product has been created.',
        'updated' => 'Product has been updated.',
        'deleted' => 'Product has been deleted.',
        'toggled' => 'Product status has been updated.',
    ],

    'bom' => [
        'fetched' => 'BOM items have been fetched.',
        'bulk_upsert' => 'BOM items have been saved.',
        'reordered' => 'BOM order has been updated.',
        'fetch' => 'BOM item fetch',
        'create' => 'BOM item created',
        'update' => 'BOM item updated',
        'delete' => 'BOM item deleted',
        'restore' => 'BOM item restored',
    ],

    'category' => [
        'fields_saved' => 'Category fields have been saved.',
        'template_saved' => 'Category template has been saved.',
        'template_applied' => 'Category template has been applied.',
    ],

    'design' => [
        'template_cloned' => 'BOM template has been cloned.',
        'template_diff' => 'BOM template differences have been computed.',
    ],

    'model_set' => [
        'cloned' => 'Model set cloned successfully.',
        'calculated' => 'BOM calculation completed.',
    ],

    'estimate' => [
        'cloned' => 'Estimate cloned successfully.',
        'status_changed' => 'Estimate status updated.',
    ],

    // Calculation related
    'calculated' => 'Calculation completed',

    // Settings & Configuration Management
    'settings' => [
        'fields_updated' => 'Field settings have been updated.',
        'fields_bulk_saved' => 'Field settings bulk save completed.',
        'options_saved' => 'Option group has been saved.',
        'options_reordered' => 'Option values reordered successfully.',
        'common_code_saved' => 'Common code has been saved.',
    ],

    // Materials Management (Products & Materials integrated)
    'materials' => [
        'created' => 'Material has been created.',
        'updated' => 'Material has been updated.',
        'deleted' => 'Material has been deleted.',
        'fetched' => 'Materials list retrieved successfully.',
    ],

    // File Management
    'file' => [
        'uploaded' => 'File has been uploaded.',
        'deleted' => 'File has been deleted.',
        'fetched' => 'File list retrieved successfully.',
    ],

    // Order Management
    'order' => [
        'fetched' => 'Order retrieved successfully.',
        'created' => 'Order has been created.',
        'updated' => 'Order has been updated.',
        'deleted' => 'Order has been deleted.',
        'status_updated' => 'Order status has been updated.',
    ],

    // Sale Management
    'sale' => [
        'confirmed' => 'Sale has been confirmed.',
        'statement_issued' => 'Statement has been issued.',
        'statement_sent' => 'Statement has been sent.',
        'bulk_statement_issued' => 'Statements have been issued in bulk.',
    ],

    // Tax Invoice Management
    'tax_invoice' => [
        'issued' => 'Tax invoice has been issued.',
        'cancelled' => 'Tax invoice has been cancelled.',
        'bulk_issued' => 'Tax invoices have been issued in bulk.',
    ],
];
