@if(isset($attendances)) @if(count($attendances)>0) @php($examTotal = $papers->sum('mark')) @php($topScore = topScore($data->exam_id))
Highest : {{ $topTotal = $topScore['results']->sum('mark') }} Avg : {{ $avg = numberFormat(($topTotal/$examTotal)*100,2) }} % Grade : {{ grade($avg) }} Scorer : {{ $topScore['student']->name }} Image Batch : {{ $topScore['student']->batch->name }} School : {{ $topScore['student']->school->name }} Mobile : {{ $topScore['student']->mobile }}
@foreach($papers as $paper) @endforeach @php($totalPresent = 0) @php($totalAbsent = 0) @php($result = null) @foreach($students as $student) @php($sl = $loop->iteration) @php($attendance = examAttendanceCheck($data,$student->id)) @if($attendance!=null and $attendance->status==1) @php($status=true) @php($totalPresent++) @else @php($status=false) @php($totalAbsent++) @endif @php($total=0) @foreach($papers as $paper) @if($status) @php($data->paper_id = $paper->id) @php($result = resultCheck($data,$student->id)) @php($result!=null? $total +=$result->mark : $total +=0) @else @endif @endforeach @if($status) @php($avg = numberFormat(($total/$examTotal)*100,2)) @else @endif @endforeach @php($lastColspan = 2+count($papers))
Sl. Name Nick Name Photo Mobile School Batch{{ $paper->code }} : {{ $paper->mark }}Total : {{ $examTotal }} Avg(%) Grade
{{ $sl }} {{ $student->name }} {{ $student->nick_name }} Image {{ $student->mobile }} {{ isset($student->school)? $student->school->name : 'Not Found' }} {{ isset($student->batch)? $student->batch->name : 'Not Found' }}{{ $result!=null? $result->mark : 'Absent' }}Absent{{ $total }}{{ $avg }} {{ grade($avg) }} Absent -- -- --
Total Number Of Student : {{ $totalPresent+$totalAbsent }} Present : {{ $totalPresent }}Absent : {{ $totalAbsent }}
@else @endif @else

Please select all field above to see result !!!

@endif