{!! Form::model($tc, ['method' => 'PATCH','route' => ['academic.tc.update', $tc->id]]) !!}
@method('PUT')
{!! Form::close() !!}
{!! Form::label('section', trans('Section'), ['class' => 'control-label']) !!}
{!! Form::select('section',$section, $tc->student->section_id??null, array('required', 'class' => 'select2 form-control','id'=>'section', 'placeholder' => trans('Choose'),'onchange'=>'getStudentsSessionSection()')) !!}
@error('section')
{{ $message }}
@enderror
{!! Form::label('session', trans('Session'), ['class' => 'control-label']) !!}
{!! Form::select('session', schoolSession(1, true),$tc->student->studentInfo->session??null, ['class' => 'select2 form-control','id'=>'session','required','onchange'=>'getStudentsSessionSection()','placeholder'=>'Choose']) !!}
@if ($errors->has('session'))
{{ $errors->first('session') }}
@endif
{!! Form::select('student', $studentPluck,$tc->student_id??null, array('id' => 'student', 'class' => 'form-control select2','required','onchange'=>'getStudentInfo(this.value)','placeholder' =>trans('Choose'))) !!}
@error('student')
{{ $message }}
@enderror