<?php

return [
    // General messages
    'success' => [
        'created' => 'The product has been successfully created.',
        'updated' => 'The product has been successfully updated.',
        'deleted' => 'The product has been successfully deleted.',
        'category_created' => 'The category has been successfully created.',
        'category_updated' => 'The category has been successfully updated.',
        'category_deleted' => 'The category has been successfully deleted.',
        'supplier_created' => 'The supplier has been successfully created.',
        'supplier_updated' => 'The supplier has been successfully updated.',
        'supplier_deleted' => 'The supplier has been successfully deleted.',
        'transaction_created' => 'The transaction has been successfully recorded.',
        'stock_adjusted' => 'The stock has been successfully adjusted.',
    ],
    
    'error' => [
        'not_found' => 'The product was not found.',
        'create_failed' => 'Could not create the product. Please try again.',
        'update_failed' => 'Could not update the product. Please try again.',
        'delete_failed' => 'Could not delete the product. Please try again.',
        'category_not_found' => 'The category was not found.',
        'category_create_failed' => 'Could not create the category. Please try again.',
        'category_update_failed' => 'Could not update the category. Please try again.',
        'category_delete_failed' => 'Could not delete the category. Please try again.',
        'category_has_items' => 'You cannot delete a category with associated products.',
        'category_has_children' => 'You cannot delete a category with subcategories.',
        'category_duplicate' => 'A category with this name already exists.',
        'category_duplicate_update' => 'Another category with this name already exists.',
        'category_self_parent' => 'A category cannot be its own parent.',
        'category_subcategory_parent' => 'You cannot set a subcategory as parent.',
        'supplier_not_found' => 'The supplier was not found.',
        'transaction_not_found' => 'The transaction was not found.',
        'insufficient_stock' => 'Insufficient stock to perform this operation.',
        'invalid_quantity' => 'The entered quantity is not valid.',
        'invalid_transaction_type' => 'The selected transaction type is not valid.',
    ],
    
    // Titles
    'titles' => [
        'index' => 'Inventory',
        'create' => 'Create Product',
        'edit' => 'Edit Product',
        'show' => 'Product Details',
        'transactions' => 'Transactions',
        'low_stock' => 'Low Stock Products',
        'categories' => 'Categories',
        'category_create' => 'Create Category',
        'category_edit' => 'Edit Category',
        'category_show' => 'Category Details',
        'suppliers' => 'Suppliers',
        'supplier_create' => 'Create Supplier',
        'supplier_edit' => 'Edit Supplier',
        'supplier_show' => 'Supplier Details',
    ],
    
    // Validation
    'validation' => [
        'name_required' => 'The name is required.',
        'name_max' => 'The name may not be longer than :max characters.',
        'name_unique' => 'The name is already in use.',
        'category_required' => 'The category is required.',
        'category_exists' => 'The selected category does not exist.',
        'supplier_exists' => 'The selected supplier does not exist.',
        'quantity_required' => 'The quantity is required.',
        'quantity_numeric' => 'The quantity must be a number.',
        'quantity_min' => 'The quantity must be at least :min.',
        'min_stock_numeric' => 'The minimum stock must be a number.',
        'min_stock_min' => 'The minimum stock must be at least :min.',
        'unit_price_numeric' => 'The unit price must be a number.',
        'unit_price_min' => 'The unit price must be at least :min.',
        'status_required' => 'The status is required.',
        'status_in' => 'The selected status is invalid.',
        'expiration_date_date' => 'The expiration date must be a valid date.',
        'image_image' => 'The file must be an image.',
        'image_max' => 'The image may not be larger than :max kilobytes.',
    ],
    
    // Fields
    'fields' => [
        'name' => 'Name',
        'description' => 'Description',
        'category' => 'Category',
        'supplier' => 'Supplier',
        'quantity' => 'Quantity',
        'min_stock' => 'Minimum Stock',
        'unit_price' => 'Unit Price',
        'status' => 'Status',
        'location' => 'Location',
        'expiration_date' => 'Expiration Date',
        'last_maintenance' => 'Last Maintenance',
        'next_maintenance' => 'Next Maintenance',
        'image' => 'Image',
        'notes' => 'Notes',
        'serial_number' => 'Serial Number',
        'brand' => 'Brand',
        'model' => 'Model',
    ],
    
    // Status
    'status' => [
        'active' => 'Active',
        'inactive' => 'Inactive',
        'maintenance' => 'Maintenance',
    ],
    
    // Transactions
    'transaction_types' => [
        'entry' => 'Entry',
        'exit' => 'Exit',
        'adjustment' => 'Adjustment',
        'transfer' => 'Transfer',
    ],
    
    // Buttons
    'buttons' => [
        'create' => 'Create',
        'edit' => 'Edit',
        'update' => 'Update',
        'delete' => 'Delete',
        'cancel' => 'Cancel',
        'back' => 'Back',
        'save' => 'Save',
        'close' => 'Close',
        'confirm' => 'Confirm',
        'adjust_stock' => 'Adjust Stock',
        'add_transaction' => 'Add Transaction',
        'view_all' => 'View All',
        'view_transactions' => 'View Transactions',
        'view_details' => 'View Details',
    ],
    
    // Confirmations
    'confirm' => [
        'delete' => 'Are you sure you want to delete this product?',
        'delete_category' => 'Are you sure you want to delete this category?',
        'delete_supplier' => 'Are you sure you want to delete this supplier?',
        'delete_transaction' => 'Are you sure you want to delete this transaction?',
        'reassign' => 'Are you sure you want to reassign this product to another category?',
    ],
    
    // Modals
    'modals' => [
        'adjust_stock' => 'Adjust Stock',
        'reassign_category' => 'Reassign Category',
        'confirm_deletion' => 'Confirm Deletion',
        'stock_transaction' => 'Stock Transaction',
    ],
    
    // Alerts
    'alerts' => [
        'low_stock' => 'This product has a low stock level.',
        'no_stock' => 'This product has no available stock.',
        'no_products' => 'There are no products in the inventory.',
        'no_categories' => 'There are no inventory categories.',
        'no_suppliers' => 'There are no registered suppliers.',
        'no_transactions' => 'There are no transactions recorded for this product.',
        'category_has_products' => 'This category has associated products. Deleting it could affect these products.',
        'cannot_delete_category' => 'Cannot delete: This category has associated products.',
        'delete_instructions' => 'To delete this category, you must first reassign the products to another category or delete the associated products.',
    ],
]; 