@include('components.reports.head')
NAME OF LECTURER: {{ "$staff->title $staff->surname $staff->forenames" }}
COURSE CODE: {{ $schedule->course->code }}
COURSE TITLE: {{ $schedule->course->name }}
VENUE: {{ $schedule->campus->name }}
INTAKE: {{ $schedule->intake->name }}
DATES: {{ "$schedule->start_date - $schedule->end_date" }}
@foreach ($schedule->evaluations()->with('attribute')->get()->groupBy('evaluation_attribute_id') as $items) @if($items->first()->attribute->checkbox) @php $percent = 0; $student_cf = 0 @endphp @foreach ($items->groupBy('score') as $scores) @php $student_cf += $voted @endphp @endforeach
{{ $items->first()->attribute->attribute??'' }}
Frequency Percent Valid percent Cumulative percent
{{ evaluation_weight($scores->first()->score) }} {{ $voted = $scores->count() }} {{ $subpercent = ($voted / $schedule->enrolledStudents->count()) * 100 }} {{ $subpercent }} {{ $percent += $subpercent }}
Total {{ $student_cf }} {{ $percent }} {{ $percent }}
@endif @endforeach @php $sno = 1 @endphp @foreach ($schedule->evaluations()->with('attribute')->get()->groupBy('evaluation_attribute_id') as $items) @if(!$items->first()->attribute->checkbox)

{{ ++$sno }}. {{ $items->first()->attribute->attribute??'' }}

@endif @endforeach