@include('frontend.template.school.school_type_option_select_menu',[
'label' => '',
'name'=>'school_type_id',
'id'=>'school_type_id',
'option_value_field' => 'id',
'class' => 'pl-4',
'default' => old('school_type_id',null)
])
@include('frontend.template.district_select_menu',[
'label' => '',
'name'=>'district_id',
'id'=>'district_id',
'class' => 'pl-4',
'default' => old('district_id',null)
])
@php
$teacher_subjects = [];
if(!empty(old('teacher_subjects')) && count(old('teacher_subjects')) > 0){
foreach (old('teacher_subjects') as $teacher_subject) {
$subject = explode(',',$teacher_subject);
$teacher_subjects[] = [
'grade' => $subject[1],
'subject_id' => $subject[2],
];
}
}
@endphp
@include('.frontend.template.school.subject',[
'id' => 'register',
'default' => $teacher_subjects,
'dropdown_class' => 'pl-3',
])
@include('frontend.template.position_select_menu', [
"default" => old('position',''),
'class' => 'pl-4',
])