<?php

declare(strict_types=1);

/**
 * Canonical route-to-Task-View authorization map.
 * Keep server guards, navigation diagnostics, and automated route coverage
 * aligned through this single source.
 */
return [
        'help_support' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant','cashier','inventory_officer']],
        'my_profile' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant','cashier','inventory_officer']],
        'search' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant']],
        'role_switch' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant','cashier','inventory_officer']],
        'patients' => ['permission'=>'patients.view','roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant']],
        'appointment_requests' => ['permission'=>'appointments.manage','roles'=>['super_admin','clinic_admin','receptionist','staff'],'action'=>'appointment_requests.manage'],
        'portal_requests' => ['permission'=>'appointments.manage','roles'=>['super_admin','clinic_admin','receptionist','staff','dentist'],'action'=>'appointments.manage'],
        'record_requests' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','cashier']],
        'waitlist' => ['permission'=>'appointments.manage','roles'=>['super_admin','clinic_admin','receptionist','staff'],'action'=>'appointments.manage'],
        'appointments' => ['permission'=>'appointments.manage','roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant']],
        'appointment_service_actions' => ['roles'=>['super_admin','clinic_admin','dentist','receptionist','staff','dental_assistant'],'action'=>'appointment.service_disposition'],
        'queue' => ['permission'=>'queue.manage','roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant']],
        'dental_safety_assessment' => ['roles'=>['super_admin','clinic_admin','dentist','dental_assistant']],
        'inhouse_checkups' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dental_assistant']],
        'visit_workflow' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant']],
        'visit_exceptions' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant','inventory_officer']],
        'followups' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant']],
        'communications' => ['permission'=>'communications.manage','roles'=>['super_admin','clinic_admin','receptionist','staff','dentist']],
        'clinical' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist','dental_assistant']],
        'clinical_day' => ['roles'=>['super_admin','clinic_admin','dentist']],
        'doctor_treatment' => ['roles'=>['super_admin','clinic_admin','dentist']],
        'clinical_workspace' => ['roles'=>['super_admin','clinic_admin','dentist','dental_assistant']],
        'clinical_tasks' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist']],
        'doctor_profile' => ['roles'=>['super_admin','clinic_admin','dentist']],
        'doctor_schedule' => ['roles'=>['super_admin','clinic_admin','dentist']],
        'schedule' => ['roles'=>['super_admin','clinic_admin','dentist']],
        'availability' => ['roles'=>['super_admin','clinic_admin','dentist']],
        'odontogram' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist','dental_assistant']],
        'periodontal' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist','dental_assistant']],
        'treatment' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist','dental_assistant']],
        'prescriptions' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist']],
        'documents' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist','dental_assistant']],
        'consents' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist','dental_assistant']],
        'referrals' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist']],
        'laboratory' => ['permission'=>'clinical.view','roles'=>['super_admin','clinic_admin','dentist','dental_assistant']],
        'billing' => ['permission'=>'billing.manage','roles'=>['super_admin','cashier','staff']],
        'insurance' => ['permission'=>'insurance.manage','roles'=>['super_admin','clinic_admin']],
        'inventory' => ['permission'=>'inventory.manage','roles'=>['super_admin','clinic_admin','inventory_officer']],
        'sterilization' => ['permission'=>'sterilization.manage','roles'=>['super_admin','clinic_admin','dentist','dental_assistant','inventory_officer']],
        'reports' => ['permission'=>'reports.view','roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant','inventory_officer']],
        'print_center' => ['permission'=>'records.print','roles'=>['super_admin','clinic_admin','dentist','receptionist','staff','dental_assistant','cashier','inventory_officer']],
        'administration' => ['roles'=>['super_admin','clinic_admin']],
        'staff' => ['roles'=>['super_admin','clinic_admin']],
        'settings' => ['roles'=>['super_admin','clinic_admin']],
        'services' => ['roles'=>['super_admin','clinic_admin']],
        'operation_hours' => ['roles'=>['super_admin','clinic_admin']],
        'email_settings' => ['permission'=>'smtp.manage','roles'=>['super_admin','clinic_admin']],
        'email_templates' => ['permission'=>'smtp.manage','roles'=>['super_admin','clinic_admin']],
        'chairs' => ['roles'=>['super_admin','clinic_admin']],
        'reminders' => ['roles'=>['super_admin','clinic_admin']],
        'branding' => ['roles'=>['super_admin','clinic_admin']],
        'website_pages' => ['roles'=>['super_admin','clinic_admin']],
        'website_media' => ['roles'=>['super_admin','clinic_admin']],
        'sms_settings' => ['permission'=>'smtp.manage','roles'=>['super_admin','clinic_admin']],
        'inhouse_team' => ['roles'=>['super_admin','clinic_admin']],
        'patient_numbering' => ['roles'=>['super_admin','clinic_admin']],
        'permission_matrix' => ['roles'=>['super_admin','clinic_admin']],
        'break_glass' => ['roles'=>['super_admin','clinic_admin']],
        'privacy_governance' => ['roles'=>['super_admin','clinic_admin']],
        'hardening_center' => ['roles'=>['super_admin']],
        'uploads' => ['permission'=>'uploads.manage','roles'=>['super_admin','clinic_admin']],
        'data_tools' => ['roles'=>['super_admin']],
        'system_setup' => ['roles'=>['super_admin']],
        'system_smoke_test' => ['roles'=>['super_admin']],
        'production_monitoring' => ['roles'=>['super_admin']],
        'operational_health' => ['roles'=>['super_admin']],
        'setup_wizard' => ['roles'=>['super_admin','clinic_admin']],
        'go_live_checklist' => ['roles'=>['super_admin']],
        'backup_restore' => ['roles'=>['super_admin']],
        'kiosk_mode' => ['roles'=>['super_admin']],
        'kiosk' => ['roles'=>['super_admin']],
        'demo_accounts' => ['roles'=>['super_admin']],
        'license' => ['roles'=>['super_admin']],
        'license_manager' => ['roles'=>['super_admin']],
        'installer_builder' => ['roles'=>['super_admin']],
        'download_installer' => ['roles'=>['super_admin']],
    
        'navigation_recovery' => ['roles'=>['super_admin','clinic_admin','receptionist','staff','dentist','dental_assistant','cashier','inventory_officer']],
        'navigation_diagnostics' => ['roles'=>['super_admin']],
        'transaction_integrity' => ['permission'=>'system.transaction_integrity.view','roles'=>['super_admin','clinic_admin']],
        'data_integrity_center' => ['permission'=>'system.data_integrity.view','roles'=>['super_admin','clinic_admin']],
        'gmail_oauth' => ['permission'=>'smtp.manage','roles'=>['super_admin','clinic_admin']],
        'update' => ['roles'=>['super_admin']],
    ];
