@foreach($teacherEducationInfos as $key => $teacherEducationInfo)
@if(empty($key))
@php $keyid = 999; @endphp
@else
@php $keyid = $key; @endphp
@endif
@lang('Edit Academic') {{$key+1}}
{!! Form::model($teacherEducationInfo, ['method' => 'PATCH','route' => ['teacherEducationInfo.update', $teacherEducationInfo->id],'autocomplete'=>'off']) !!}
{!! Form::label('level_of_education', 'Level of Education', array('class' => 'col-form-label control-label')); !!}
{!! Form::select('level_of_education',levelofEducation(),null, array('id' => 'level_of_education'.$keyid, 'class' => 'form-control', 'placeholder' => trans('Choose'),'required','onchange'=>'ajaxExamDegreeTitle(this.value,'.$keyid.')')) !!}
@error('level_of_education')
{{ $message }}
@enderror
@error('exam_degree_title')
{{ $message }}
@enderror
@if($teacherEducationInfo->exam_degree_title == 'Other' || $teacherEducationInfo->exam_degree_title == 'Others')
@php
$displayyesno = 'display:block;';
$displayyesnovalue = $teacherEducationInfo->others;
@endphp
@else
@php
$displayyesno = 'display:none;';
$displayyesnovalue = '';
@endphp
@endif
@error('others')
{{ $message }}
@enderror
{!! Form::label('group', 'Major/Group', array('class' => 'col-form-label control-label')); !!}
{!! Form::text('group',null, array('id' => 'group'.$keyid, 'class' => 'form-control', 'placeholder' => trans('Major/Group'),'required')) !!}
@error('group')
{{ $message }}
@enderror
{!! Form::label('result', 'Result', array('class' => 'col-form-label control-label')); !!}
{!! Form::text('result',null, array('id' => 'result'.$keyid, 'class' => 'form-control', 'placeholder' => trans('Enter result'),'required')) !!}
@error('result')
{{ $message }}
@enderror
{!! Form::label('year_of_passing', 'Year of Passing', array('class' => 'col-form-label control-label')); !!}
{!! Form::selectRange('year_of_passing', date('Y'),1970,null, ['id' => 'year_of_passing'.$keyid,'class' => 'form-control','placeholder' => trans('Choose'),'required']) !!}
@error('year_of_passing')
{{ $message }}
@enderror
{!! Form::label('duration', 'Duration (Years)', array('class' => 'col-form-label control-label')); !!}
{!! Form::text('duration', null, array('id' => 'duration'.$keyid, 'class' => 'form-control', 'placeholder' => trans('Duration'),'required')) !!}
@error('duration')
{{ $message }}
@enderror
{!! Form::label('institution', 'Institute Name', array('class' => 'col-form-label control-label')); !!}
{!! Form::text('institution',null, array('id' => 'institution'.$keyid, 'class' => 'form-control', 'placeholder' => trans('Institution Name'),'required')) !!}
@error('institution')
{{ $message }}
@enderror
{!! Form::button(trans(' Update '), array('class' => 'btn btn-info btn-sm cloneRemove','type' =>'submit' )) !!}
Cancel
{!! Form::close() !!}
@endforeach