@extends('admin::layouts.plane') @section('page_heading') {{$title}} @endsection @section('content')
{{ Form::open(array('url' => request()->fullUrl(), 'method' => 'post')) }} {{ csrf_field() }}
@php $role_id = Auth::user()->role_id; if($role_id == 1){ @endphp
Select School @php $school = ''; if(!empty($_REQUEST['school'])) $school = $_REQUEST['school']; @endphp {{ Form::select('school', $schools_list_arr, $school, ['placeholder' => '- Select School -', 'class' => 'form-control', 'id' => 'school', 'required' => '']) }}
@php } @endphp
Session {{ Form::select('session', $session_list, $session, ['placeholder' => 'Session', 'class' => 'form-control', 'id' => 'session', 'required' => '']) }}
Class Section @php $result_type = $_REQUEST['result_type']; $class_section_array = array(); foreach ($class_section as $key => $value) { $classNumVal = explode('|',$key); if( (($result_type == 'PT1') || ($result_type == 'PT2') || ($result_type == 'PT3')) && ($classNumVal[0] > 8)){ $class_section_array[$key] = $value; }elseif( (($result_type == 'Pre Mid Term') || ($result_type == 'Post Mid Term') || ($result_type == 'Half Yearly')) && ($classNumVal[0] <= 8)){ $class_section_array[$key] = $value; }elseif($result_type == 'Final'){ $class_section_array[$key] = $value; }elseif(($result_type == 'SA1') || ($result_type == 'SA2') || ($result_type == 'IB Final') || ($result_type == 'Spiritual Development Program')){ $class_section_array[$key] = $value; } } @endphp @php $current_class_section = -13; if(isset($_POST['current_class']) && isset($_POST['section'])) $current_class_section = $_POST['current_class'].'|'.$_POST['section']; @endphp {{ Form::select('class_section', $class_section_array, $current_class_section, ['placeholder' => '- Select Class -', 'class' => 'form-control', 'id' => 'class_section', 'required' => '']) }}
@php if($result_type == 'Spiritual Development Program'){ @endphp
SA @php $sa = ''; if(!empty($_POST['sa'])) { $sa = $_POST['sa']; }else{ $sa = 'sa'; } @endphp {{ Form::select('sa', ["SA1"=>"SA1","SA2"=>"SA2"], $sa, ['class' => 'form-control', 'id' => 'sa', 'required' => '']) }}
@php } if(($result_type == 'Half Yearly') || ($result_type == 'Final') || ($result_type == 'PT2')){ @endphp
Result Format {{ Form::select('resultFormat', ["Single Subject View"=>"Single Subject View ","All Subject View"=>"All Subject View"], $resultFormat, ['class' => 'form-control', 'id' => 'resultFormat', 'required' => '']) }}
Subject {{ Form::select('filterSubject', $filterSubjectArray, $filterSubject, ['placeholder' => '- Select Subject -','class' => 'form-control', 'id' => 'filterSubject']) }}
@php } @endphp
Board @php $board = ''; if(!empty($_POST['board'])) { $board = $_POST['board']; }else{ $board = 'CBSE'; } @endphp {{ Form::select('board', ["CBSE"=>"CBSE","IB"=>"IB","CE"=>"CE"], $board, ['class' => 'form-control', 'id' => 'board', 'required' => '']) }}
Order By {{ Form::select('order_by', ["Student Name"=>"Student Name","Admission No"=>"Admission No"], $order_by, [ 'class' => 'form-control', 'id' => 'order_by', 'required' => '']) }}
{{ Form::label('', '', array('class' => 'control-label col-sm-3')) }}  
{{ Form::label('', '', array('class' => 'control-label col-sm-6')) }}
{{ Form::close() }}

@if (isset($sqlExist) && count($sqlExist) <= 0 && request()->isMethod('post'))
@endif @if (count($sqlExist) > 0)
@php $j = 1; @endphp @foreach ($sqlExist as $results) @php $j++; @endphp @endforeach
S. No. Name
Adm No.
{{ $j }} {{ Form::hidden('board', $results->admission_no) }} {{ $results->first_name }} {{ $results->last_name }}
{{ $results->admission_no }}
@if($j == 1) {{ Form::hidden('onload_std_id', $results->admission_no , ['id' => 'onload_std_id']) }} {{ Form::hidden('onload_school_id', $results->school_id, ['id' => 'onload_school_id']) }} @endif
Student Name:
Adm No.:
Father Name:
Mother Name:
Adhaar:
DOB:
Gender:
Mobile:
@php $cnt = 0; $clrCnt = 0; $bgColor = ['#B00051', '#134D9C', '#006400', '#800080', '#8B0000', '#2F4F4F', '#483D8B', '#6E006C']; @endphp @foreach ($subject as $key => $value) @if(count($subject[$key])<=0) @continue @endif @php $formId = str_replace(['.', ' ', '/', '(', ')', '-'], '', substr($key, 0, 6)); @endphp {{ Form::open(['method' => 'post', 'id' => $formId]) }} {{ csrf_field() }}

{{ $key }}

@php $cnt = count($subject[$key]); @endphp @for ($i = 0; $i < $cnt; $i++)
{{ $subject[$key][$i]->sub_title }}
@php $cntToInc = $i + 1; $field_name = $subject[$key][$i]->table_field_name; $field_array = explode("pmt_", $field_name); $is_pmt_field = false; $pmt_sub_id = 0; $field_name = $field_array[0]; $PTV = "$" . $field_name . "perodic_test"; $subjectField = $field_name . "sub" . $cntToInc; $marksField = $field_name . "marks" . $cntToInc; $max_marks = $subject[$key][$i]->max_marks; $readonly = ($max_marks == 0); $marks_id = $marksField; $default_value = ''; if(isset($field_array[1])){ $is_pmt_field = true; $pmt_sub_id = $field_array[1]; $marks_id ="pmt_".$pmt_sub_id; $readonly = true; $default_value = 0; } @endphp {{ Form::hidden('subject_id', $subject[$key][$i]->subject_id) }} {{ Form::hidden($subjectField, $subject[$key][$i]->id) }} {{ Form::number($marksField, $default_value, ['class' => 'select-mini marks_textbox', 'id' => $marks_id, 'required', 'max' => $max_marks, 'step' => '.01','readonly' => $readonly,'data-pmt' => $is_pmt_field,'data-pmt_sub_id' => $pmt_sub_id]) }}/{{$max_marks}}

@endfor {{ Form::hidden('field_name', $field_name, ['class' => 'select-mini field_name', 'required']) }} {{ Form::hidden($field_name . "perodic_test", '', ['class' => 'select-mini field_name perodicTest', 'required', 'id' => $field_name . "perodic_test"]) }} @if (!$getResultStatus) @if (AdminHelper::checkPermission('save_student_mark_button'))

@endif @elseif($getResultStatus == 1) @if (AdminHelper::checkPermission('save_student_mark_button'))

@endif @endif
@php $clrCnt++; @endphp {{ Form::close() }} @endforeach
@endif