@extends('layouts.app') @section('title', __('TC Create')) @section('content') @php $section = (new App\Section())->getSection(true, true, true,'classes.name'); @endphp
@include('layouts.leftside-menubar')
@include('components.pages-bar',['pageTitle' =>''. trans('Certificate').' / '. trans('TC').' / '.trans('Edit').'']) @include('components.sectionbar.certificate-bar')
{!! Form::model($tc, ['method' => 'PATCH','route' => ['academic.tc.update', $tc->id]]) !!}
{!! 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

@lang('Present Address'):

@lang('Permanent Address'):

@method('PUT')
{!! Form::close() !!}
@push('script') @endpush @endsection