@extends('layouts.app') @section('title', __('Degree')) @section('content')
@include('layouts.leftside-menubar')
@lang('Teacher') / @lang('Education Summary') @lang('Degree')
@if (session('status'))
{{ session('status') }}
@endif
@if(!empty($teacherEducationInfos)) @php $counter = count($teacherEducationInfos) @endphp @include('teacherEducationInfo.edit') @else @php $counter = 0 @endphp @endif
{!! Form::open(array('route' =>'teacherEducationInfo.store','method' =>'POST','role' =>'form','autocomplete'=>'off')) !!}

@lang('Academic') {{$counter+1}}
{!! 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', 'class' => 'form-control', 'placeholder' => trans('Choose'),'required','onchange'=>'ajaxExamDegreeTitle(this.value,0)')) !!}
@error('level_of_education') {{ $message }} @enderror
{!! Form::label('exam_degree_title', 'Exam/Degree Title', array('class' => 'col-form-label control-label')); !!}
{!! Form::select('exam_degree_title[]',array(),NULL, array('id' => 'exam_degree_title', 'class' => 'form-control', 'placeholder' => trans('Select'),'required')) !!}
@error('exam_degree_title') {{ $message }} @enderror
{!! Form::label('group', 'Major/Group', array('class' => 'col-form-label control-label')); !!} {!! Form::text('group[]', NULL, array('id' => 'group', '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', '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','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', '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', 'class' => 'form-control', 'placeholder' => trans('Institution Name'),'required')) !!}
@error('institution') {{ $message }} @enderror
{!! Form::button(trans('Save'), array('class' => 'btn btn-primary btn-sm btn-block','type' =>'submit' )) !!}
@lang('Add Education') (If Required)
{!! Form::close() !!}
@endsection