@extends('admin::layouts.plane') @section('page_heading') {{$title}} @endsection @section('content')
{{ Form::open(array('url' => 'SchoolHead/publish-result', 'method' => 'post')) }} {{ csrf_field() }} {{ Form::select('schoolName', $schools, $schoolName, ['placeholder' => '--Select School--', 'class' => 'schoolName', 'id' => 'schoolName', 'required' => '']) }} {{ Form::select('result_type', ['Pre Mid Term'=>'Pre Mid Term','Half Yearly'=>'Half Yearly'], $result_type, ['placeholder' => '- Select Board-', 'class' => '', 'id' => 'result_type', 'required' => '']) }} {{$title}} {{ Form::close() }}

@php if(count($employees)) { @endphp
{{ Form::hidden('selected_school_name', $schoolName, ['id' => 'selected_school_name']) }} @php //echo "
";
                                //print_r($checkRecordExist);
                                foreach ($classSection as $key => $value) {
                            @endphp
                            
@php } @endphp
Class Section Result Type Teacher Observer View Action
{{$arrClasses[$value->current_class]}} {{ Form::hidden('current_class_'.$key, $value->current_class, ['id' => 'current_class','class' => 'current_class']) }} {{$value->section}} {{ Form::hidden('section_'.$key, $value->section, ['id' => 'section','class' => 'section']) }} {{ Form::hidden('class_'.$key, $value->current_class, ['id' => 'current_class','class' => 'current_class']) }} @php $className = isset($value->current_class) ? $value->current_class : ''; $sectionName = isset($value->section) ? $value->section : ''; $teacherName = isset($checkRecordExist["teacher-".$className."-".$sectionName]) ? $checkRecordExist["teacher-".$className."-".$sectionName] : ''; $observerName = isset($checkRecordExist["observer-".$className."-".$sectionName]) ? $checkRecordExist["observer-".$className."-".$sectionName] : ''; $principalName = isset($checkRecordExist["principal-".$className."-".$sectionName]) ? $checkRecordExist["principal-".$className."-".$sectionName] : ''; $resultType = isset($checkRecordExist["resultType-".$className."-".$sectionName]) ? $checkRecordExist["resultType-".$className."-".$sectionName] : ''; $session = isset($checkRecordExist["session-".$className."-".$sectionName]) ? $checkRecordExist["session-".$className."-".$sectionName] : ''; $board = isset($checkRecordExist["board-".$className."-".$sectionName]) ? $checkRecordExist["board-".$className."-".$sectionName] : ''; $school = isset($checkRecordExist["school-".$className."-".$sectionName]) ? $checkRecordExist["school-".$className."-".$sectionName] : ''; $publishTDName = "publish-".$className."-".$sectionName; @endphp {{ Form::hidden('result_type_'.$key, $resultType, ['id' => 'result_type','class' => 'result_type']) }} {{ Form::hidden('session_'.$key, $session, ['id' => 'session','class' => 'session']) }} {{ Form::hidden('board_'.$key, $board, ['id' => 'board','class' => 'board']) }} {{ Form::hidden('school_'.$key, $school, ['id' => 'school_id','class' => 'school_id']) }} {{ isset($resultType) ? $resultType : ''}} @php print($teacherName > 0)?"Yes":"No"; @endphp @php print($observerName > 0)?"Yes":"No"; @endphp @php print($observerName > 0 || $teacherName > 0)?"":"";@endphp @php if($observerName > 0 && $teacherName > 0 && $principalName > 0){ echo "Published"; }else if($observerName > 0 && $teacherName > 0){ echo""; }else{ echo "Not Ready Yet"; } @endphp
@php } @endphp
@stop