@extends('admin::layouts.plane') @section('page_heading') {{$title}} @endsection @section('content')
{{$title}}
{{ Form::open(array('url' => 'teacher/viewObservedResult', 'method' => 'post')) }} {{ csrf_field() }}
Select School @php $school = ''; if(!empty($_POST['school'])) $school = $_POST['school']; @endphp {{ Form::select('school', $schools_list_arr, $school, ['placeholder' => '- Select School -', 'class' => 'form-control', 'id' => 'school', 'required' => '']) }}
Select Class @php $current_class = -13; if(isset($_POST['current_class'])) $current_class = $_POST['current_class']; @endphp {{ Form::select('current_class', $arrClasses, $current_class, ['placeholder' => '- Select Class -', 'class' => 'form-control', 'id' => 'current_class', 'required' => '']) }}
Section @php $section = ''; if(!empty($_POST['section'])) $section = $_POST['section']; @endphp {{ Form::select('section', $sections, $section, ['placeholder' => 'Select', 'class' => 'form-control', 'id' => 'section', 'required' => '']) }}
Session @php $session = ''; if(!empty($_POST['session'])){ $session = $_POST['session']; }else{ $session = $active_session; } @endphp {{ Form::select('session', $session_list, $session, ['placeholder' => 'Session', 'class' => 'form-control', 'id' => 'session', 'required' => '']) }}
Board @php $Board = ''; if(!empty($_POST['Board'])) { $Board = $_POST['Board']; }else{ $Board = 'CBSE'; } @endphp {{ Form::select('board', ["CBSE"=>"CBSE","IB"=>"IB","CAIE"=>"CAIE"], $Board, ['placeholder' => '- Select Board-', 'class' => 'form-control', 'id' => 'Board', 'required' => '']) }}
Result Type @php $resultType = ''; if(!empty($_POST['resultType'])) { $resultType = $_POST['resultType']; }else{ $resultType = ''; } @endphp {{ Form::select('resultType', ["Pre Mid Term"=>"Pre Mid Term","Half Yearly"=>"Half Yearly","Post Mid Term"=>"Post Mid Term","Final"=>"Final","Automation Sheet"=>"Automation Sheet","Co-Scholastic Term 1" => "Co-Scholastic Term 1","Co-Scholastic Term 2" => "Co-Scholastic Term 2","Discipline Term 1" => "Discipline Term 1","Discipline Term 2" => "Discipline Term 2"], $resultType, ['placeholder' => '- Select Board-', 'class' => 'form-control', 'id' => 'Board', 'required' => '']) }}
 
{{ Form::close() }}
@if (count($sqlExist) > 0)
@foreach ($final_subject as $key => $value) @endforeach @foreach ($sqlSubTitle as $key => $value) @endforeach @php $j = 1; @endphp @foreach ($sqlExist as $results) @php $i = 1; @endphp @foreach ($sqlSubTitle as $key => $value) @php $fieldName='marks_'.$i; $marks = isset($results['marks_'.$i])?$results['marks_'.$i]:0; $percentage = isset($results['percentage_'.$i])?$results['percentage_'.$i]:0; @endphp @php $i++; @endphp @endforeach @php $j++; @endphp @endforeach @php $j = 1; @endphp @foreach ($sqlObserveMarks as $results) @php $i = 1; @endphp @foreach ($sqlSubTitle as $key => $value) @php $fieldName='marks_'.$i; $marks = isset($results['marks_'.$i])?$results['marks_'.$i]:0; $percentage = isset($results['percentage_'.$i])?$results['percentage_'.$i]:0; @endphp @php $i++; @endphp @endforeach @php $j++; @endphp @endforeach
S No. Student ID Student Name Admission No.{{$value}}
{{$value->sub_title}} {{$value->cal_percentage_on}}%
{{ $j }} {{ $results['s_adm_no_hid'] }} {{ $results['s_full_name_hid'] }} {{ $results['s_adm_no_hid'] }}{{ $marks }} {{ $percentage }}
Observer{{ $marks }} {{ $percentage }}
@endif @stop