<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * Language strings for the Adeptus Insights report plugin
 *
 * @package     report_adeptus_insights
 * @category    string
 * @copyright   2026 Adeptus 360 <info@adeptus360.com>
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

defined('MOODLE_INTERNAL') || die();

// Plugin name
$string['pluginname'] = 'Adeptus Insights';
$string['pluginname_help'] = 'AI-powered insights and analytics for Moodle';

// Welcome section
$string['welcome_to_adeptus'] = 'Welcome to Adeptus Insights';
$string['welcome_description'] = 'Unlock the power of automation and AI-driven reports, insights and analytics for your Moodle platform.';

// Feature cards
$string['report_wizard'] = 'Report Wizard';
$string['report_wizard_desc'] = 'Create custom reports with our intuitive wizard interface.';
$string['get_started'] = 'Get Started';

$string['subscription_management'] = 'Subscription Management';
$string['subscription_management_desc'] = 'Manage your subscription, billing, and plan upgrades.';
$string['manage_subscription'] = 'Manage Subscription';

$string['generated_reports'] = 'Generated Reports';
$string['generated_reports_desc'] = 'View and manage all your saved reports.';
$string['view_reports'] = 'View Reports';
$string['generated_reports_title'] = 'Generated Reports';
$string['no_reports_yet'] = 'No reports generated yet';
$string['no_reports_yet_desc'] = 'Use the AI Assistant to generate reports and they will appear here.';

$string['ai_driven_assistant'] = 'AI-Generated Reports';
$string['ai_driven_assistant_desc'] = 'Get instant help and reports from our AI assistant.';
$string['start_chat'] = 'Start Chat';

// Current subscription section
$string['current_subscription'] = 'Current Subscription';
$string['plan'] = 'Plan';
$string['status'] = 'Status';
$string['ai_credits_remaining'] = 'AI Credits Remaining';
$string['ai_tokens_remaining'] = 'AI Tokens Remaining';
$string['exports_remaining'] = 'Exports Remaining';

// Authentication and registration
$string['authentication_required'] = 'Authentication Required';
$string['login_to_continue'] = 'Please log in to continue using the plugin.';
$string['login'] = 'Login';
$string['logout'] = 'Logout';
$string['register'] = 'Register';
$string['registration_required'] = 'Registration Required';
$string['register_now'] = 'Register Now';

// Installation and setup
$string['installation_complete'] = 'Installation Complete';
$string['subscription_setup'] = 'Subscription Setup';
$string['redirecting'] = 'Redirecting...';
$string['redirect_message'] = 'You will be redirected to the subscription setup page.';
$string['site_already_exists'] = 'Site Already Registered';
$string['site_already_exists_desc'] = 'This site is already registered with Adeptus AI. You can continue using the plugin.';

// Subscription management
$string['subscription_status'] = 'Subscription Status';
$string['subscription_details'] = 'Subscription Details';
$string['billing_cycle'] = 'Billing Cycle';
$string['next_billing'] = 'Next Billing Date';
$string['cancel_subscription'] = 'Cancel Subscription';
$string['upgrade_plan'] = 'Upgrade Plan';
$string['downgrade_plan'] = 'Downgrade Plan';
$string['subscription_cancelled'] = 'Subscription Cancelled';
$string['subscription_error'] = 'Subscription Error';

// Reports
$string['reports'] = 'Reports';
$string['create_report'] = 'Create Report';
$string['edit_report'] = 'Edit Report';
$string['delete_report'] = 'Delete Report';
$string['export_report'] = 'Export Report';
$string['report_history'] = 'Report History';

// AI Assistant
$string['ai_assistant'] = 'AI Assistant';
$string['assistanttitle'] = 'Adeptus AI Assistant';
$string['chat_with_ai'] = 'Chat with AI';
$string['send_message'] = 'Send Message';
$string['chat_history'] = 'Chat History';
$string['clear_chat'] = 'Clear Chat';

// General
$string['loading'] = 'Loading...';
$string['error'] = 'Error';
$string['success'] = 'Success';
$string['warning'] = 'Warning';
$string['info'] = 'Information';
$string['close'] = 'Close';
$string['save'] = 'Save';
$string['cancel'] = 'Cancel';
$string['edit'] = 'Edit';
$string['delete'] = 'Delete';
$string['view'] = 'View';
$string['refresh'] = 'Refresh';

// Notifications
$string['notification_success'] = 'Operation completed successfully';
$string['notification_error'] = 'An error occurred';
$string['notification_warning'] = 'Please note';
$string['notification_info'] = 'Information';

// Capabilities
$string['adeptus_insights:view'] = 'View Adeptus Insights';
$string['adeptus_insights:manage'] = 'Manage Adeptus Insights';
$string['adeptus_insights:create_reports'] = 'Create reports';
$string['adeptus_insights:export_reports'] = 'Export reports';
$string['adeptus_insights:manage_subscription'] = 'Manage subscription';

// Settings
$string['settings'] = 'Settings';
$string['general_settings'] = 'General Settings';
$string['api_settings'] = 'API Settings';
$string['subscription_settings'] = 'Subscription Settings';
$string['report_settings'] = 'Report Settings';

// Errors
$string['error_not_registered'] = 'Plugin is not registered. Please complete the installation process.';
$string['error_no_subscription'] = 'No active subscription found. Please set up your subscription.';
$string['error_api_connection'] = 'Unable to connect to the backend API. Please check your configuration.';
$string['error_invalid_response'] = 'Invalid response from the server. Please try again.';

// Success messages
$string['registration_success'] = 'Plugin registered successfully!';
$string['subscription_created'] = 'Subscription created successfully!';
$string['subscription_updated'] = 'Subscription updated successfully!';
$string['report_created'] = 'Report created successfully!';
$string['report_updated'] = 'Report updated successfully!';
$string['report_deleted'] = 'Report deleted successfully!';

// Installation steps
$string['installation_step_1'] = 'Plugin Installation';
$string['installation_step_2'] = 'Subscription Setup';
$string['installation_step_3'] = 'Configuration';
$string['installation_complete'] = 'Installation Complete';

// Subscription plans
$string['free_plan'] = 'Free Plan';
$string['basic_plan'] = 'Basic Plan';
$string['premium_plan'] = 'Premium Plan';
$string['enterprise_plan'] = 'Enterprise Plan';

// Billing
$string['billing_portal'] = 'Billing Portal';
$string['manage_billing'] = 'Manage Billing';
$string['payment_methods'] = 'Payment Methods';
$string['invoices'] = 'Invoices';
$string['billing_history'] = 'Billing History';

// Credits and usage
$string['credits_remaining'] = 'Credits Remaining';
$string['usage_this_month'] = 'Usage This Month';
$string['monthly_limit'] = 'Monthly Limit';
$string['overage_charges'] = 'Overage Charges';

// Support
$string['support'] = 'Support';
$string['documentation'] = 'Documentation';
$string['contact_support'] = 'Contact Support';
$string['help_center'] = 'Help Center';
$string['faq'] = 'FAQ';

// Version info
$string['version'] = 'Version';
$string['last_updated'] = 'Last Updated';
$string['changelog'] = 'Changelog';
$string['release_notes'] = 'Release Notes';

// Admin Settings - General Configuration
$string['general_configuration'] = 'General Configuration';
$string['general_configuration_desc'] = 'Configure the basic settings for the Adeptus Insights plugin.';

// Admin Settings - Plugin Enablement
$string['enable_plugin'] = 'Enable Plugin';
$string['enable_plugin_desc'] = 'Enable or disable the Adeptus Insights plugin. When disabled, the plugin will not be accessible to users.';

// Admin Settings - Usage Tracking
$string['usage_tracking'] = 'Usage Tracking';
$string['usage_tracking_desc'] = 'Configure how usage data is collected and stored.';
$string['enable_usage_tracking'] = 'Enable Usage Tracking';
$string['enable_usage_tracking_desc'] = 'Track user activity and report generation for analytics and billing purposes.';
$string['usage_retention_days'] = 'Usage Retention Days';
$string['usage_retention_days_desc'] = 'Number of days to retain usage data before automatic cleanup. Default is 365 days.';

// Admin Settings - Email Notifications
$string['email_notifications'] = 'Email Notifications';
$string['email_notifications_desc'] = 'Configure email notifications for important events.';
$string['enable_email_notifications'] = 'Enable Email Notifications';
$string['enable_email_notifications_desc'] = 'Send email notifications for subscription changes, usage alerts, and system events.';
$string['notification_email'] = 'Notification Email';
$string['notification_email_desc'] = 'Email address to receive system notifications and alerts.';

// Admin Settings - Advanced Settings
$string['advanced_settings'] = 'Advanced Settings';
$string['advanced_settings_desc'] = 'Configure advanced options for debugging and API connections.';
$string['debug_mode'] = 'Debug Mode';
$string['debug_mode_desc'] = 'Enable detailed logging and debugging information. Only enable this for troubleshooting purposes.';
$string['api_timeout'] = 'API Timeout';
$string['api_timeout_desc'] = 'Timeout in seconds for API requests to the backend service. Default is 30 seconds.';

// Admin Settings - Stripe Configuration
$string['stripe_configuration'] = 'Stripe Configuration';
$string['stripe_configuration_desc'] = 'Configure Stripe payment processing for subscription management.';
$string['configure_stripe'] = 'Configure Stripe';

// Privacy API strings
$string['privacy:metadata:ai_analytics_base'] = 'Analytics data aggregated for each user-course combination.';
$string['privacy:metadata:ai_analytics_base:userid'] = 'The ID of the user.';
$string['privacy:metadata:ai_analytics_base:courseid'] = 'The ID of the course.';
$string['privacy:metadata:ai_analytics_base:logins'] = 'Number of logins recorded.';
$string['privacy:metadata:ai_analytics_base:assignments_submitted'] = 'Number of assignments submitted.';
$string['privacy:metadata:ai_analytics_base:forum_posts'] = 'Number of forum posts made.';
$string['privacy:metadata:ai_analytics_base:resource_clicks'] = 'Number of resource clicks.';
$string['privacy:metadata:ai_analytics_base:last_login'] = 'Timestamp of last login.';
$string['privacy:metadata:ai_analytics_base:average_grade'] = 'Average grade in the course.';

$string['privacy:metadata:ai_report_cache'] = 'Cached report results for faster loading.';
$string['privacy:metadata:ai_report_cache:userid'] = 'The ID of the user who generated the report.';
$string['privacy:metadata:ai_report_cache:reportid'] = 'The ID of the report.';
$string['privacy:metadata:ai_report_cache:jsondata'] = 'The cached report data in JSON format.';
$string['privacy:metadata:ai_report_cache:timecreated'] = 'When the cache was created.';

$string['privacy:metadata:ai_report_config'] = 'User-created report configurations.';
$string['privacy:metadata:ai_report_config:userid'] = 'The ID of the user who created the report.';
$string['privacy:metadata:ai_report_config:name'] = 'The name of the report.';
$string['privacy:metadata:ai_report_config:question'] = 'The question/prompt used to create the report.';
$string['privacy:metadata:ai_report_config:fields'] = 'The fields included in the report.';
$string['privacy:metadata:ai_report_config:filters'] = 'The filters applied to the report.';
$string['privacy:metadata:ai_report_config:timecreated'] = 'When the report was created.';

$string['privacy:metadata:adeptus_report_history'] = 'History of report generation.';
$string['privacy:metadata:adeptus_report_history:userid'] = 'The ID of the user who generated the report.';
$string['privacy:metadata:adeptus_report_history:reportid'] = 'The ID of the report generated.';
$string['privacy:metadata:adeptus_report_history:parameters'] = 'Parameters used for the report.';
$string['privacy:metadata:adeptus_report_history:generatedat'] = 'When the report was generated.';

$string['privacy:metadata:adeptus_report_bookmarks'] = 'User bookmarks for reports.';
$string['privacy:metadata:adeptus_report_bookmarks:userid'] = 'The ID of the user who bookmarked the report.';
$string['privacy:metadata:adeptus_report_bookmarks:reportid'] = 'The ID of the bookmarked report.';
$string['privacy:metadata:adeptus_report_bookmarks:createdat'] = 'When the bookmark was created.';

$string['privacy:metadata:adeptus_usage_tracking'] = 'AI credit usage tracking.';
$string['privacy:metadata:adeptus_usage_tracking:userid'] = 'The ID of the user.';
$string['privacy:metadata:adeptus_usage_tracking:usage_type'] = 'Type of usage (AI query, export, etc.).';
$string['privacy:metadata:adeptus_usage_tracking:credits_used'] = 'Number of credits used.';
$string['privacy:metadata:adeptus_usage_tracking:timecreated'] = 'When the usage occurred.';

$string['privacy:metadata:adeptus_export_tracking'] = 'Export history for reports.';
$string['privacy:metadata:adeptus_export_tracking:userid'] = 'The ID of the user who exported.';
$string['privacy:metadata:adeptus_export_tracking:reportname'] = 'Name of the exported report.';
$string['privacy:metadata:adeptus_export_tracking:format'] = 'Export format (CSV, JSON, etc.).';
$string['privacy:metadata:adeptus_export_tracking:exportedat'] = 'When the export occurred.';

$string['privacy:metadata:adeptus360_api'] = 'Registration and subscription data sent to Adeptus 360 for service operation. Note: Student data, report results, and analytics data never leave your Moodle server.';
$string['privacy:metadata:adeptus360_api:admin_email'] = 'Administrator email address for registration and subscription management.';
$string['privacy:metadata:adeptus360_api:admin_name'] = 'Administrator name for registration purposes.';
$string['privacy:metadata:adeptus360_api:site_url'] = 'Your Moodle site URL for license validation.';
$string['privacy:metadata:adeptus360_api:ai_queries'] = 'Natural language queries sent to the AI assistant. Note: Only the questions are sent - report results are generated locally and never transmitted.';

$string['privacy:analytics'] = 'Analytics data';
$string['privacy:reportcache'] = 'Report cache';
$string['privacy:reportconfig'] = 'Report configurations';
$string['privacy:reporthistory'] = 'Report history';
$string['privacy:bookmarks'] = 'Bookmarks';
$string['privacy:usagetracking'] = 'Usage tracking';
$string['privacy:exporttracking'] = 'Export tracking';

// Support & Updates
$string['support_updates'] = 'Support & Updates';
$string['support_updates_desc'] = 'Submit support tickets and view changelog updates.';
$string['support_tickets'] = 'Support Tickets';
$string['changelog'] = 'Changelog';
$string['submit_ticket'] = 'Submit Ticket';
$string['view_tickets'] = 'View Tickets';
$string['all'] = 'All';

// Support ticket form
$string['new_ticket'] = 'New Support Ticket';
$string['ticket_category'] = 'Category';
$string['ticket_subject'] = 'Subject';
$string['ticket_message'] = 'Message';
$string['ticket_priority'] = 'Priority';
$string['ticket_attachments'] = 'Attachments';
$string['ticket_submitter_name'] = 'Your Name';
$string['ticket_submitter_email'] = 'Your Email';
$string['submit_ticket_btn'] = 'Submit Ticket';
$string['cancel'] = 'Cancel';

// Ticket categories
$string['category_support'] = 'Support';
$string['category_bug'] = 'Bug Report';
$string['category_feature_request'] = 'Feature Request';
$string['category_other'] = 'Other';

// Ticket priorities
$string['priority_low'] = 'Low';
$string['priority_medium'] = 'Medium';
$string['priority_high'] = 'High';

// Ticket statuses
$string['status_open'] = 'Open';
$string['status_in_progress'] = 'In Progress';
$string['status_resolved'] = 'Resolved';
$string['status_closed'] = 'Closed';

// Support messages
$string['support_not_available'] = 'Support features require plugin registration.';
$string['ticket_created'] = 'Your support ticket has been submitted successfully.';
$string['ticket_creation_failed'] = 'Failed to create support ticket. Please try again.';
$string['failed_to_load_tickets'] = 'Failed to load tickets. Please try again.';
$string['ticket_not_found'] = 'Ticket not found.';
$string['reply_added'] = 'Your reply has been added.';
$string['reply_failed'] = 'Failed to add reply. Please try again.';
$string['invalid_category'] = 'Please select a valid category.';
$string['subject_required'] = 'Subject is required.';
$string['message_required'] = 'Message is required.';

// Ticket list
$string['no_tickets'] = 'No support tickets found.';
$string['ticket_number'] = 'Ticket #';
$string['ticket_date'] = 'Date';
$string['ticket_last_reply'] = 'Last Reply';
$string['view_ticket'] = 'View';
$string['reply_to_ticket'] = 'Reply';

// Ticket detail
$string['ticket_details'] = 'Ticket Details';
$string['ticket_replies'] = 'Replies';
$string['add_reply'] = 'Add Reply';
$string['reply_message'] = 'Your Reply';
$string['no_replies'] = 'No replies yet.';
$string['from_customer'] = 'Customer';
$string['from_support'] = 'Support Team';

// File uploads
$string['file_upload_error'] = 'File upload failed.';
$string['file_too_large'] = 'File size exceeds maximum allowed ({$a}).';
$string['file_type_not_allowed'] = 'This file type is not allowed.';
$string['allowed_file_types'] = 'Allowed file types: images (jpg, png, gif), PDF, text files (txt, log, csv, json), and ZIP archives.';
$string['max_file_size'] = 'Maximum file size: 10MB';
$string['max_files'] = 'Maximum 5 files per upload';

// Attachments
$string['attachment_not_found'] = 'Attachment not found or you do not have permission to access it.';
$string['attachment_download_failed'] = 'Failed to download attachment. Please try again.';

// Changelog
$string['changelog_title'] = 'Changelog & Updates';
$string['failed_to_load_changelog'] = 'Failed to load changelog. Please try again.';
$string['no_changelog_entries'] = 'No changelog entries available.';
$string['version'] = 'Version';
$string['release_date'] = 'Release Date';
$string['major_release'] = 'Major Release';
$string['view_details'] = 'View Details';

// Updates
$string['check_for_updates'] = 'Check for Updates';
$string['failed_to_check_updates'] = 'Failed to check for updates.';
$string['update_available'] = 'Update Available';
$string['update_available_desc'] = 'A new version ({$a->version}) is available. You are currently using version {$a->current}.';
$string['no_updates'] = 'No Updates Available';
$string['no_updates_desc'] = 'You are using the latest version ({$a}).';
$string['versions_behind'] = 'You are {$a} version(s) behind.';
$string['current_version'] = 'Current Version';
$string['latest_version'] = 'Latest Version';
$string['download_update'] = 'Download Update';
$string['view_changelog'] = 'View Changelog';

// PDF Export Branding
$string['pdf_footer_default'] = 'Powered by Adeptus Insights | © 2026 Adeptus 360';
$string['pdf_parameters'] = 'Report Parameters';
$string['pdf_table_data'] = 'Table Data';
$string['pdf_chart_visualization'] = 'Chart Visualization';
$string['pdf_no_data'] = 'No data available for this report.';
$string['pdf_no_chart'] = 'No chart visualization available for this report.';
$string['pdf_generated_on'] = 'Generated on';
$string['pdf_page'] = 'Page';
$string['pdf_of'] = 'of';

// Branding errors
$string['branding_unavailable'] = 'PDF branding is temporarily unavailable. Please try again later.';
$string['branding_fetch_failed'] = 'Unable to fetch branding assets from the server.';
$string['export_branding_required'] = 'PDF export requires connection to the branding server. Please ensure you have an active internet connection.';

// Export plan restrictions
$string['export_premium_title'] = 'Premium Export Format';
$string['export_premium_feature'] = '{$a} Export is a Premium Feature';
$string['export_premium_description'] = 'Export to {$a} format is only available with a paid subscription plan. Upgrade now to unlock all export formats and advanced features.';
$string['export_free_plan_info'] = 'Free Plan: PDF exports only';
$string['export_paid_plan_info'] = 'Paid Plans: CSV, Excel, JSON, and PDF exports';
$string['export_upgrade_now'] = 'Upgrade Now';
$string['export_not_available'] = 'Export Not Available';
$string['export_not_eligible'] = 'You are not eligible to export in this format.';
