@foreach ( $collection as $key => $group )
@if (!(count($homeworks_and_students) == 0) or !(count($quizzes_and_students) == 0) )
|
# |
Student |
Total |
Graded |
Missed |
Persantage |
Progress |
@if ($has_grade_schema)
Expected Grade |
@endif
{{-- @php
$labels = [];
@endphp
@foreach ($quizzes_titles as $item)
@php
array_push($labels, $item->title);
@endphp
@endforeach
@foreach ($assignments_titles as $item)
@php
array_push($labels, $item->title);
@endphp
@endforeach --}}
@php
$search = $group[1]; // Shinobi, Aragami
@endphp
@foreach ($group[0] as $idkey => $student)
@php
$flag = false;
foreach($groupedByStudent[$idkey] as $real_group){
if($flag == true)
break;
if($real_group->name == $search){
$flag = true;
}
}
@endphp
@if ($flag == true)
@php
$quiz_label = [];
$quiz_data = [];
$home_label = [];
$home_data = [];
@endphp
@foreach ($chart_collection[$key][$student[0]->user_id] as $item)
@if ($item[0] == 'quiz')
@php
$label = str_replace(',', '_', $item[1]);
$label = str_replace('"', '', $label);
$label = str_replace("'", '', $label);
array_push($quiz_label, $label);
array_push($quiz_data, $item[2]);
// array_push($home_label, '');
// array_push($home_data, '');
@endphp
@else
@php
$label = str_replace(',', '_', $item[1]);
$label = str_replace('"', '', $label);
$label = str_replace("'", '', $label);
array_push($home_label, $label);
array_push($home_data, $item[2]);
// array_push($quiz_label, '');
// array_push($quiz_data, '');
@endphp
@endif
@endforeach
|
{{ $counter + 1 }}
|
{{ $student[0]->first_name }} {{ $student[0]->middle_name }} {{ $student[0]->last_name }}
|
{{ $student->graded + $student->missed }}
|
{{ $student->graded }} |
{{ $student->missed }} |
{{ round(($student->ratio * 100), 2) }}% |
|
@if ($has_grade_schema)
{{ $student->expected_sign }}
|
@endif
@endif
@endforeach
@else
No data been
found
@endif
{{-- begin:pagination --}}
{{--
{{ $students->appends(Request::except('page'))->render('components._pagination') }}
Displaying {{ $students->count() }} of {{ $students->total() }} student(s).
--}}
{{-- end:pagination --}}
@endforeach