@php
$routes = subModuleRoute($child);
$paid_modules = ['Zoom','University','Gmeet','QRCodeAttendance','BBB','ParentRegistration','InAppLiveClass','AiContent','Lms','Certificate','Jitsi','WhatsappSupport','InfixBiometrics'];
$default_theme = ['course-heading-update','admin-home-page','custom-links','social-media','From Download','class-exam-routine-page','course-details-heading','news-heading-update','exam-result-page','contact-page','about-page','conpactPage'];
$edulia_theme = ['home-slider','admin-home-page','pagebuilder','expert-teacher','photo-gallery','video-gallery','front-result','front-class-routine','front-exam-routine','front-academic-calendar', 'class-exam-routine-page'];
$active_theme = activeTheme();
$new_fees = ['fees.fees-group','fees.due-fees','fees.fees-type','fees.fine-report','fees','fees.fees-invoice-list','fees.payment-report','fees-invoice-bulk-print','fees.bank-payment','fees.balance-report','fees-invoice-bulk-print-settings','fees_forward','fees.waiver-report'];
$old_fees = ['fees_statement','balance_fees_report','transaction_report','fine-report','fees-bulk-print', 'fees_group', 'fees_type','fees-master','fees_discount','collect_fees','search_fees_payment','search_fees_due','fees_forward','bank-payment-slip'];
$sass_general_setting = ['school-general-settings','saas.custom-domain','administrator-notice'];
$sass_school_disable = ['update-system','backup-settings','api/permission','cron-job'];
@endphp
route }}">
{{ !empty($child->lang_name) ? __($child->lang_name):$child->name }}
@if(!empty($child->module) && in_array($child->module, $paid_modules) && config('app.app_sync') == true)
Addon
@endif
@foreach($child->childs as $third)
@if(userPermission($third->route) )
@php
$disable_routes = ['class_optional','academic-year']
@endphp
@if(in_array($third->route, $disable_routes))
@if(!moduleStatusCheck("University"))
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@else
@if(in_array($third->route, $sass_general_setting ))
@if(moduleStatusCheck("Saas"))
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@else
@if($third->route == 'manage-adons')
@if(!moduleStatusCheck("Saas"))
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@else
@if($third->route == 'online_exam')
@if(!moduleStatusCheck("Saas"))
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@else
@if(in_array($third->route, [ 'view-teacher-lessonPlan-overview','view-teacher-lessonPlan','teacher_class_routine_report'] ))
@if(isTeacher())
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@else
@if(in_array($third->route,$edulia_theme))
@if($active_theme == 'edulia')
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@else
@if(in_array($third->route,$default_theme))
@if($active_theme == 'default')
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@else
@if(in_array($third->route,$new_fees) || in_array($third->route,$old_fees))
@if(in_array($third->route,$new_fees) && generalSetting()->fees_status == 1 )
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@if(in_array($third->route,$old_fees) && generalSetting()->fees_status == 0 )
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@else
@if(in_array($third->route, $sass_school_disable))
@if(!moduleStatusCheck("Saas"))
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@else
-
{{ !empty($third->lang_name) ? __($third->lang_name):$third->name }}
@endif
@endif
@endif
@endif
@endif
@endif
@endif
@endif
@endif
@endif
@endforeach