<?php
/**
 * ITSWEBER CMS – English System Messages
 */
return [
    'created' => ':item created successfully.',
    'updated' => ':item updated successfully.',
    'deleted' => ':item deleted successfully.',
    'saved' => 'Changes saved.',
    'activated' => ':item activated.',
    'deactivated' => ':item deactivated.',

    'not_found' => ':item not found.',
    'create_failed' => 'Could not create :item.',
    'update_failed' => 'Could not update :item.',
    'delete_failed' => 'Could not delete :item.',
    'generic_error' => 'An error occurred. Please try again.',
    'permission_denied' => 'Permission denied.',

    'field_required' => 'This field is required.',
    'all_required' => 'All fields are required.',
    'invalid_email' => 'Please enter a valid e-mail address.',
    'password_min' => 'Password must be at least :min characters.',
    'password_mismatch' => 'Passwords do not match.',
    'username_taken' => 'Username already taken.',
    'email_taken' => 'Email address already in use.',
    'username_format' => 'Username may only contain letters, numbers, underscores and hyphens.',
    'invalid_credentials' => 'Invalid credentials.',

    'login_error' => 'Invalid credentials.',
    'reset_sent' => 'If an account with this e-mail address exists, a reset link has been sent.',
    'reset_success' => 'Password changed successfully. You can now sign in.',
    'reset_error' => 'Could not reset password.',
    'reset_invalid_token' => 'Invalid or expired reset link.',

    'user_created' => 'User ":name" created successfully.',
    'user_updated' => 'User ":name" updated successfully.',
    'user_deleted' => 'User deleted successfully.',
    'cannot_delete_self' => 'You cannot delete your own account.',
    'cannot_deactivate_self' => 'You cannot deactivate your own account.',

    'page_created' => 'Page ":title" created successfully.',
    'page_updated' => 'Page ":title" updated successfully.',
    'page_deleted' => 'Page deleted successfully.',
    'page_duplicated' => 'Page duplicated successfully.',

    'post_created' => 'Post ":title" created successfully.',
    'post_updated' => 'Post ":title" updated successfully.',
    'post_deleted' => 'Post deleted successfully.',
    'post_duplicated' => 'Post duplicated successfully.',
    'category_created' => 'Category created successfully.',
    'category_updated' => 'Category updated successfully.',
    'category_deleted' => 'Category deleted successfully.',
    'tag_deleted' => 'Tag deleted successfully.',

    'album_created' => 'Album ":title" created successfully.',
    'album_updated' => 'Album ":title" updated successfully.',
    'album_deleted' => 'Album deleted successfully.',
    'image_uploaded' => 'Image uploaded successfully.',
    'image_deleted' => 'Image deleted successfully.',
    'images_added' => ':count image(s) added to gallery.',

    'event_created' => 'Event ":title" created successfully.',
    'event_updated' => 'Event ":title" updated successfully.',
    'event_deleted' => 'Event deleted successfully.',

    'download_created' => 'Download ":title" created successfully.',
    'download_updated' => 'Download ":title" updated successfully.',
    'download_deleted' => 'Download deleted successfully.',

    'file_uploaded' => 'File uploaded successfully.',
    'file_updated' => 'File updated successfully.',
    'file_deleted' => 'File deleted successfully.',
    'folder_created' => 'Folder created successfully.',
    'folder_renamed' => 'Folder renamed successfully.',
    'folder_deleted' => 'Folder deleted successfully.',

    'menu_item_added' => 'Menu item added.',
    'menu_item_updated' => 'Menu item updated.',
    'menu_item_deleted' => 'Menu item deleted.',
    'menu_reordered' => 'Menu order updated.',

    'settings_saved' => 'Settings saved.',
    'language_changed' => 'Language changed.',

    'theme_activated' => 'Theme ":name" activated.',
    'theme_installed' => 'Theme ":name" installed successfully.',
    'theme_uninstalled' => 'Theme uninstalled successfully.',

    'plugin_activated' => 'Plugin ":name" activated.',
    'plugin_deactivated' => 'Plugin ":name" deactivated.',
    'plugin_installed' => 'Plugin ":name" installed successfully.',
    'plugin_uninstalled' => 'Plugin uninstalled successfully.',

    'maintenance_enabled' => 'Maintenance mode enabled.',
    'maintenance_disabled' => 'Maintenance mode disabled.',
    'maintenance_updated' => 'Maintenance configuration updated.',

    'backup_created' => 'Backup created successfully.',
    'backup_restored' => 'Backup restored successfully.',
    'update_applied' => 'Update applied successfully.',

    // Additional admin messages
    'invalid_language' => 'Invalid language selected.',
    'file_required' => 'No file selected.',
    'upload_failed' => 'Upload failed.',
    'reload_page' => 'Please reload the page.',

    // Error variants for specific contexts
    'error' => [
        'slug_taken' => 'A category/item with this slug already exists.',
        'category_has_posts' => 'Cannot delete: :count post(s) are assigned to this category. Reassign or delete them first.',
        'name_taken' => 'An item with this name already exists.',
        'tag_has_posts' => 'Cannot delete tag: still assigned to :count post(s).',
        'invalid_input' => 'Invalid input provided.',
        'last_admin' => 'Cannot delete the last admin account. Create another admin first.',
        'no_images_added' => 'No images could be added. Some images may already be in the gallery.',
    ],
];
