<?php

return [
    // Module / menu
    'medreg_module'         => 'Medical Module Registry',
    'medical_modules'       => 'Medical Modules',
    'registry'              => 'Module registry',
    'registry_subtitle'     => 'Catalog of all platform modules with medical metadata',
    'module_instances'      => 'Module instances',
    'setup_wizard'          => 'Setup wizard',

    // Permissions
    'perm_registry_view'    => 'View module registry',
    'perm_registry_manage'  => 'Manage module instances',
    'perm_wizard_run'       => 'Run setup wizard',
    'perm_settings_manage'  => 'Manage module settings',

    // Catalog / registry list
    'module'                => 'Module',
    'category'              => 'Category',
    'all_categories'        => 'All categories',
    'category_core'         => 'Core',
    'category_medical'      => 'Medical',
    'category_specialty'    => 'Specialty',
    'category_facility'     => 'Facility',
    'category_support'      => 'Support',
    'category_integration'  => 'Integration',
    'spec_key'              => 'Spec module',
    'installable_per'       => 'Installable per',
    'per_tenant'            => 'Tenant',
    'per_facility'          => 'Facility',
    'per_department'        => 'Department',
    'dependencies'          => 'Dependencies',
    'version'               => 'Version',
    'presence'              => 'Presence',
    'present'               => 'Present',
    'absent'                => 'Absent',
    'installed'             => 'Installed',
    'not_installed'         => 'Not installed',
    'catalog_empty'         => 'The module catalog is empty — run the catalog sync (medreg:sync-catalog) or reinstall the module.',

    // Instances
    'instances_subtitle'    => 'Enable, disable or soft-lock modules per tenant, facility or department',
    'instances_matrix'      => 'Module status per scope',
    'instances_matrix_help' => 'Most specific scope wins: department overrides location, location overrides tenant. Modules with no instance row default to disabled for medical categories and enabled for everything else.',
    'scope_tenant'          => 'Tenant (all locations)',
    'status'                => 'Status',
    'status_installed'      => 'Installed',
    'status_enabled'        => 'Enabled',
    'status_disabled'       => 'Disabled',
    'status_soft_locked'    => 'Soft-locked',
    'default_disabled'      => 'Default (disabled)',
    'default_enabled'       => 'Default (enabled)',
    'default_status_help'   => 'No instance row — category default applies',
    'enable'                => 'Enable',
    'disable'               => 'Disable',
    'soft_lock'             => 'Soft-lock (reject new operations)',
    'uninstall'             => 'Uninstall instance (data is kept)',
    'apply'                 => 'Apply',
    'instance_updated'      => 'Module instance updated',
    'department'            => 'Department',
    'department_scope'      => 'Department-level instances',
    'department_scope_help' => 'Optionally narrow a module to a single department (ClinicCore departments).',

    // Settings (P1-T5)
    'settings'              => 'Settings',
    'instance_settings'     => 'Module instance settings',
    'no_settings_schema'    => 'This module does not declare a settings schema.',
    'settings_saved'        => 'Settings saved',
    'invalid_settings'      => 'Invalid value for: :fields',

    // Wizard (P1-T6)
    'wizard_step1_title'      => 'Step 1 of 3 — choose your facility type',
    'wizard_step1_question'   => 'What type of facility are you setting up?',
    'wizard_custom_hint'      => 'Choose "Custom" for a manual module selection from the full medical catalog.',
    'wizard_already_completed' => 'The setup wizard was already completed for this business (type: :type, on :date). Re-running it is safe — it only adds or re-enables modules.',
    'wizard_step2_title'      => 'Step 2 of 3 — confirm modules',
    'default_modules'         => 'Default modules',
    'default_modules_help'    => 'These modules are required for the selected facility type and will be enabled.',
    'optional_modules'        => 'Optional modules',
    'required'                => 'required',
    'optional'                => 'optional',
    'all_specialties_note'    => 'all installed specialty modules will be enabled',
    'will_be_skipped'         => 'no installed module on this host — will be skipped',
    'pick_one_specialty'      => 'Pick one specialty module of choice:',
    'pick_specialties'        => 'Pick specialty modules:',
    'no_specialties_present'  => 'No specialty modules are installed on this host.',
    'custom_selection'        => 'Custom module selection',
    'custom_selection_help'   => 'Select any combination of medical modules from the catalog. Dependencies are added automatically.',
    'back'                    => 'Back',
    'confirm_and_install'     => 'Confirm & Install',
    'wizard_result_title'     => 'Step 3 of 3 — installation report',
    'wizard_applied'          => 'The ":type" preset was applied to this business.',
    'report_enabled'          => 'Enabled modules',
    'report_dependency_added' => 'Dependencies added automatically',
    'report_dependency_added_help' => 'These spec modules were required by your selection and were added automatically.',
    'report_skipped_missing'  => 'Skipped (no installed host module)',
    'report_skipped_missing_help' => 'These spec modules have no installed module on this host yet. They will be picked up by re-running the wizard once the modules are installed.',
    'none'                    => 'None',
    'go_to_instances'         => 'Manage module instances',
    'go_to_registry'          => 'Open module registry',
];
