@extends('layouts.master') @section('page_title', 'Tabulation Sheet') @section('content')
# | NAMES_OF_STUDENTS_IN_CLASS | @foreach($subjects as $sub){{ strtoupper($sub->slug ?: $sub->name) }} | @endforeach {{--@if($ex->term == 3)1ST TERM TOTAL | 2ND TERM TOTAL | 3RD TERM TOTAL | CUM Total | CUM Average | @endif--}}Total | Average | Position |
---|---|---|---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | {{ $s->user->name }} | @foreach($subjects as $sub){{ $marks->where('student_id', $s->user_id)->where('subject_id', $sub->id)->first()->$tex ?? '-' ?: '-' }} | @endforeach {{--@if($ex->term == 3) --}}{{--1st term Total--}}{{--{{ Mk::getTermTotal($s->user_id, 1, $year) ?? '-' }} | --}}{{--2nd Term Total--}}{{--{{ Mk::getTermTotal($s->user_id, 2, $year) ?? '-' }} | --}}{{--3rd Term total--}}{{--{{ Mk::getTermTotal($s->user_id, 3, $year) ?? '-' }} | @endif--}}{{ $exr->where('student_id', $s->user_id)->first()->total ?: '-' }} | {{ $exr->where('student_id', $s->user_id)->first()->ave ?: '-' }} | {!! Mk::getSuffix($exr->where('student_id', $s->user_id)->first()->pos) ?: '-' !!} |