@extends('admin::layouts.plane') @section('page_heading') {{$title}} @endsection @section('content')
{{ Form::open(array('url' => 'config/class-assignment', 'method' => 'post')) }} {{ csrf_field() }} {{ Form::select('schoolName', $schools, $schoolName, ['placeholder' => '--Select School--', 'class' => 'schoolName', 'id' => 'schoolName', 'required' => '']) }} {{ Form::select('selectedSession', $session_list, $selectedSession, ['placeholder' => '--Select Session--', 'class' => 'sessionName', 'id' => 'sessionName', 'required' => '']) }} {{$title}} {{ Form::close() }}

@php if(count($employees)) { @endphp
{{ Form::open(array('url' => 'config/class-assignment-save', 'method' => 'post')) }} {{ csrf_field() }} {{ Form::hidden('selected_school_name', $schoolName, ['id' => 'selected_school_name']) }} {{ Form::hidden('selected_session_name', $selectedSession, ['id' => 'selected_session_name']) }} @php //echo "
";
                                //print_r($fromSchoolExist);
                                foreach ($classSection as $key => $value) {
                            @endphp
                            
@php $className = isset($value->current_class) ? $value->current_class : ''; $sectionName = isset($value->section) ? $value->section : ''; $teacherName = isset($checkRecordExist[$className."-".$sectionName]) ? $checkRecordExist[$className."-".$sectionName] : ''; @endphp @php } @endphp {{ Form::close() }}
Class Section School Teacher Existing Teacher Username Password Action
{{$arrClasses[$value->current_class]}} {{ Form::hidden('current_class_'.$key, $value->current_class, ['class' => 'current_class']) }} {{$value->section}} {{ Form::hidden('section_'.$key, $value->section, ['class' => 'section']) }} {{ Form::hidden('first_name_'.$key, isset($checkRecordExist[$key]->first_name)?$checkRecordExist[$key]->first_name:'', ['class' => 'first_name']) }} {{ Form::hidden('last_name_'.$key, isset($checkRecordExist[$key]->last_name)?$checkRecordExist[$key]->last_name:'', ['class' => 'last_name']) }} {{ Form::hidden('email_'.$key, isset($checkRecordExist[$key]->email)?$checkRecordExist[$key]->email:'', ['class' => 'email']) }} {{ Form::select('from_school', $getAllSchool, (isset($fromSchoolExist[$className."-".$sectionName])?$fromSchoolExist[$className."-".$sectionName]:''), ['placeholder' => '--Select School--', 'class' => 'schoolId', 'id' => 'fromSchool', 'required' => '']) }} @if($teacherName) {{ Form::select('teacherName_'.$key, [], $teacherName, ['placeholder' => '--Select--', 'class' => 'form-control input-sm teacherName select2', 'id'=> 'teacherName_'.$key]) }} @else {{ Form::select('teacherName_'.$key, [], '', ['placeholder' => '--Select--', 'class' => 'form-control input-sm teacherName select2', 'id'=> 'teacherName_'.$key]) }} @endif @php echo isset($allemployees[$teacherName]) ? $allemployees[$teacherName] : ''; @endphp {{ Form::text('username_'.$key, isset($usernameExist[$className."-".$sectionName])?$usernameExist[$className."-".$sectionName]:'Username', ['class' => 'username','disabled' => 'disabled']) }} passwrod)?$checkRecordExist[$key]->password:'123456'}} class="password">  
@php } @endphp
@stop