@include('backend.exams.report-card.includes.style')
@include('sweetalert::alert')

{{ $exam->name }}

SESSION: {{ $exam->year }} - {{ $exam->year+1 }}

{{-- --}} {{-- --}} {{-- --}} @if($exam->comment!='n') @endif @if($exam->need_promo_status==1) @endif
Student ID: {{ $student->roll }} Name: {{ $student->name }}
Class: {{ $exam->classInfo->code }} Section: {{ $exam->classInfo->section->name }}
Total Number of Class : {{ $meta['no_of_class'] }} Total Present: {{ $meta['no_of_class_present'] }}
Number of Parent-Teacher Meeting(PTM): {{ $meta['ptm'] }} Attended: {{ $meta['ptm_attended'] }}
@if($exam->hw_mark =='a' and $exam->cw_mark=='a') @include('backend.exams.report-card.includes.senior-academic-report-with-auto-hw-cw-mark') @else {{-- @php($hwTotalMark = 5)--}} {{-- @php($cwTotalMark = 10)--}} @foreach($transcript->rules as $rule) @endforeach {{-- --}} @php($i=1) @foreach($classSubjects as $classSubject) @php($status = subjectCheck($student->id,$data->class_id,$classSubject->subject_id)) @if($status===true) @php($subjectTotal = 0) @php($rowSpan = 1) @php($oldTotalWeightedScore = 0) @foreach($transcript->rules as $rule) @php($oldComponents = papers($rule->exam_id, $classSubject->subject_id)) @php($oldExamMark = count($oldComponents)>0? $oldComponents->sum('mark') : 0) @php($pastResult = pastResultCheck($rule->exam_id,$classSubject->subject_id,$student->id)) @php($oldObtainedMark = round($pastResult->sum('mark'))) @php($oldWeightedMark=weightedResult($oldObtainedMark,$oldExamMark,$rule->forward_mark)) @php($oldTotalWeightedScore += $oldWeightedMark) @php($subjectTotal += $oldWeightedMark) @endforeach @php($components = papers($exam->id, $classSubject->subject_id, $student->id)) {{-- --}} @php($subjectWeightedMark = studentTotalWeightWeightedMark($exam->id,$classSubject->subject_id,$transcript->id,$student->id,[])) @php($weightTopScore = weightedTopScoreForTranscript($exam->id,$classSubject->subject_id,$transcript->id,[])) @endif @endforeach @php($sl=1) @foreach($classSubjects as $classSubject) @php($status = false) @if($status===true) @php($components = papers($exam->id, $classSubject->subject_id)) @php($totalMarkObtained = 0) @php($totalMark = count($components)>0? $components->sum('mark') : 1) @php($hwMark = 0) @php($cwMark = 0) @php($topScore = 0) @php($average = 0) @php($topScore = topScore($exam->id,$classSubject->subject_id)) @php($topAverage = avearge($topScore,$totalMark)) @foreach($components as $component) @php($data->paper_id = $component->id) @php($data->subject_id = $classSubject->subject_id) @php($result = resultCheck($data,$student->id)) @php($totalMarkObtained += isset($result)? $result->mark : 0 ) @endforeach @php($average = avearge($totalMarkObtained,$totalMark)) @endif @endforeach
Subject Wise Performance
Sl. Subject Code & Name {{ $rule->exam->code }}
{{ $rule->forward_mark }}%
CW Full
Marks {{-- ({{ $transcript->forward_mark }})--}}
Weight
%
Marks
Obtained
Total
Marks
Highest
Score
Grade
{{ $transcript->forward_mark }}% {{ 100 }}%
{{ $i++ }} {{ $classSubject->sub_code }} : {{ $classSubject->subject->name }} {{ $oldWeightedMark }} @php($innerLoop = 1) @foreach($components as $component)
{{ $component->code }} : {{ $component->mark }}
@php($innerLoop += 1) @endforeach
@php($innerLoop1 = 1) @foreach($components as $component) @php($data->paper_id = $component->id) @php($data->subject_id = $classSubject->subject_id)
{{ $component->weight }}
@php($innerLoop1 += 1) @endforeach
@php($innerLoop2 = 1) @php($examWeightedSubjectTotal = 0) @foreach($components as $component) @php($data->paper_id = $component->id) @php($data->subject_id = $classSubject->subject_id) @php($resultForWeight = resultCheck($data,$student->id)) @php($newObtainedMark = isset($resultForWeight)? round($resultForWeight->mark) : 0) @php($newWeightedMark=weightedResult($newObtainedMark,$component->mark,$component->weight)) @php($examWeightedSubjectTotal += $newWeightedMark)
{{-- {{ $newObtainedMark }} | {{ $newWeightedMark }}--}} {{ $newWeightedMark }}
@php($innerLoop2 += 1) @endforeach {{-- @php($transcriptWeightedSubjectMark = weightedResult($examWeightedSubjectTotal,$components->sum('mark'),$transcript->forward_mark))--}} {{-- @php($subjectTotal += $transcriptWeightedSubjectMark)--}} @php($subjectTotal += round(($examWeightedSubjectTotal/100)*$transcript->forward_mark))
{{-- {{ $subjectWeightedMark }} || --}} {{ $subjectTotal }} {{ $weightTopScore }} {{ grade($subjectTotal) }}
{{ $sl++ }} {{ $classSubject->sub_code }} : {{ $classSubject->subject->name }} {{ isset($result)? $result->mark : 0 }} {{-- of {{ $component->mark }}--}} {{ $totalMarkObtained }} {{ $totalMark }} {{ $topScore }}{{ numberFormat($average,2) }} {{ grade($average) }}
@endif
Teacher's Evaluation
Extracurricular Activities/ Skill development
@php($loopCount = 1) @foreach($sc->items as $item) @php($activity = ecaActivity($student->id,$exam->id,$item->id)) @php($loopCount++) @endforeach
{{ $sc->name }}
{{ $item->name }} {{ isset($activity)? $activity->grade : '-' }}
@php($loopCount = 1) @foreach($lc->items as $item) @php($activity = ecaActivity($student->id,$exam->id,$item->id)) @php($loopCount++) @endforeach
{{ $lc->name }}
{{ $item->name }} {{ isset($activity)? $activity->grade : '-' }}
@php($loopCount = 1) @foreach($tic->items as $item) @php($activity = ecaActivity($student->id,$exam->id,$item->id)) @php($loopCount++) @endforeach
{{ $tic->name }}
{{ $item->name }} {{ isset($activity)? $activity->grade : '-' }}
@php($loopCount = 1) @foreach($sic->items as $item) @php($activity = ecaActivity($student->id,$exam->id,$item->id)) @php($loopCount++) @endforeach
{{ $sic->name }}
{{ $item->name }} {{ isset($activity)? $activity->grade : '-' }}
@php($loopCount = 1) @foreach($cpac->items as $item) @php($activity = ecaActivity($student->id,$exam->id,$item->id)) @php($loopCount++) @endforeach
{{ $cpac->name }}
{{ $item->name }} {{ isset($activity)? $activity->grade : '-' }}
@php($loopCount = 1) @foreach($csc->items as $item) @php($activity = ecaActivity($student->id,$exam->id,$item->id)) @php($loopCount++) @endforeach
{{ $csc->name }}
{{ $item->name }} {{ isset($activity)? $activity->grade : '-' }}
@php($loopCount = 1) @foreach($ac->items as $item) @php($activity = ecaActivity($student->id,$exam->id,$item->id)) @php($loopCount++) @endforeach
{{ $ac->name }}
{{ $item->name }} {{ isset($activity)? $activity->grade : '-' }}
@php($loopCount = 1) @foreach($olmp->items as $item) @php($activity = ecaActivity($student->id,$exam->id,$item->id)) @php($loopCount++) @endforeach
{{ $olmp->name }}
{{ $item->name }} {{ isset($activity)? $activity->grade : '-' }}
Class Teacher's Comment:
{!! isset($comment) ? $comment->comment : '' !!}
Promotional Status: This is to state that {{ $student->name }} has been promoted to {{ $meta['promoted_class_name'] }} based on academic performance and overall progress
@php($vpSign = siteInfo('vp_signature')) @if(isset($vpSign) and $vpSign != '') @endif @php($principalSign = siteInfo('principal_signature')) @if(isset($principalSign) and $principalSign != '') @endif
   Class Teacher       Vice Principal           Principal