@extends('backEnd.master') @section('title') @lang('exam.mark_sheet_report_student') @endsection @section('mainContent')

@lang('common.select_criteria')

@if(session()->has('message-success') != "") @if(session()->has('message-success'))
{{ session()->get('message-success') }}
@endif @endif @if(session()->has('message-danger') != "") @if(session()->has('message-danger'))
{{ session()->get('message-danger') }}
@endif @endif
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'mark_sheet_report_students', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@if ($errors->has('exam')) {{ $errors->first('exam') }} @endif
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@if ($errors->has('student')) {{ $errors->first('student') }} @endif
{{ Form::close() }}
@if(isset($is_result_available))

@lang('lang.mark_sheet_report')

{{isset(generalSetting()->school_name)?generalSetting()->school_name:'Infix School Management ERP'}}

{{isset(generalSetting()->address)?generalSetting()->address:'Infix School Address'}}

Email: {{isset($email)?$email:'hello@aorasoft.com'}} , Phone: {{isset(generalSetting()->phone)?generalSetting()->phone:'hello@aorasoft.com'}}

{{--
{{asset($studentDetails->student_photo)}}
--}}
{{asset($studentDetails->student_photo)}}

@lang('lang.student_information')

@lang('student.student_name') : {{$student_detail->full_name}}
@lang('student.father_name') : {{$student_detail->parents->fathers_name}}
@lang('student.mother_name') : {{$student_detail->parents->mothers_name}}
@lang('lang.roll_number') : {{$student_detail->roll_no}}
@lang('student.admission_no') : {{$student_detail->admission_no}}
@lang('common.date_of_birth') : {{$student_detail->date_of_birth != ""? dateConvert($student_detail->date_of_birth):''}}

@lang('lang.exam_info')

@lang('onlineexam::onlineExam.exam_title') : {{$exam_details->title}}
@lang('lang.academic_class') : {{$class_name->class_name}}
@lang('lang.academic_section') : {{$section->section_name}}
{{-- col-lg-4 text-black --}}
@php $marks_grade=DB::table('sm_marks_grades')->where('academic_id', getAcademicId())->get(); @endphp @if(@$marks_grade) @foreach($marks_grade as $grade_d) @endforeach
@lang('reports.staring') @lang('reports.ending') @lang('exam.gpa') @lang('exam.grade') @lang('homework.evalution')
{{$grade_d->percent_from}} {{$grade_d->percent_upto}} {{$grade_d->gpa}} {{$grade_d->grade_name}} {{$grade_d->description}}
@endif
{{-- col-lg-4 text-black --}}
@if ($optional_subject_setup!='') @else @endif @php $sum_gpa= 0; $resultCount=1; $subject_count=1; $tota_grade_point=0; $this_student_failed=0; @endphp @foreach($subjects as $data) {{-- @php if($data->subject_id==$optional_subject){ continue; } @endphp --}} @if ($optional_subject_setup!='') @if($subject_count==2) @endif @endif @if($subject_count==2) @endif @endforeach
@lang('common.sl') @lang('lang.subject_name') @lang('lang.subject_marks ') @lang('lang.highest_marks') @lang('lang.obtained_marks') @lang('lang.letter_grade') @lang('lang.grade_point')@lang('exam.gpa')
@lang('reports.without_additional')
@lang('exam.gpa') @lang('exam.gpa') @lang('reports.result')
{{$subject_count++}} {{$data->subject->subject_name}} @php $subject_mark=App\SmAssignSubject::getSubjectMark($data->subject_id, $class_id, $section_id, $exam_type_id); echo $subject_mark; @endphp @php $highest_mark=App\SmAssignSubject::getHighestMark($data->subject_id, $class_id, $section_id, $exam_type_id); echo $highest_mark; @endphp @php $tola_mark_by_subject=App\SmAssignSubject::getSumMark($student_detail->id, $data->subject_id, $class_id, $section_id, $exam_type_id); echo $tola_mark_by_subject; @endphp @php $mark_grade = App\SmMarksGrade::where([['percent_from', '<=', $tola_mark_by_subject], ['percent_upto', '>=', $tola_mark_by_subject]])->first(); @endphp {{$mark_grade->grade_name }} @php $mark_grade = App\SmMarksGrade::where([['percent_from', '<=', $tola_mark_by_subject], ['percent_upto', '>=', $tola_mark_by_subject]])->first(); $tota_grade_point = $tota_grade_point + $mark_grade->gpa ; if($mark_grade->gpa<1){ $this_student_failed =1; } $optional_subject_id=''; $countable_optional_gpa=0; @endphp @if (@$optional_subject==$data->subject_id) (GPA above {{ @$optional_subject_setup->gpa_above }})
@if ($optional_subject_setup!='') @if ($mark_grade->gpa > $optional_subject_setup->gpa_above) @php $countable_optional_gpa = $mark_grade->gpa-$optional_subject_setup->gpa_above; $optional_subject_id=$optional_subject; @endphp @endif @endif @endif @if (@$optional_subject==$data->subject_id) {{@$mark_grade->gpa-$optional_subject_setup->gpa_above }} @else {{@$mark_grade->gpa }} @endif
{{ App\SmAssignSubject::get_student_result($student_detail->id, $data->subject_id, $class_id, $section_id, $exam_type_id,$optional_subject_id,$optional_subject_setup) }}{{ App\SmAssignSubject::get_student_result_without_optional($student_detail->id, $data->subject_id, $class_id, $section_id, $exam_type_id,$optional_subject_id,$optional_subject_setup) }} @php $gpa_result=App\SmAssignSubject::get_student_result_without_optional($student_detail->id, $data->subject_id, $class_id, $section_id, $exam_type_id,$optional_subject_id,$optional_subject_setup); $result_grade=App\SmMarksGrade::where([['from', '<=', $gpa_result], ['up', '>=', $gpa_result]])->first(); echo $result_grade->grade_name; @endphp

@php $data = App\SmMarkStore::select('created_at')->where([ ['student_id',$student_detail->id], ['class_id',$class_id], ['section_id',$section_id], ['exam_term_id',$exam_type_id], ])->first(); @endphp @lang('lang.date_of_publication_of_result') : {{date_format(date_create($data->created_at),"F j, Y, g:i a")}}

@endif @endsection