@if(isset($attendances)) @if(count($attendances)>0) @php($examTotal = $papers->sum('mark')) @php($topScore = topScore($data->exam_id))