@extends('admin.report.report') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.report.index')=>__lang('reports'), '#'=>__lang('homework') ]]) @endsection @section('content')
{{__lang('homework')}} | {{__lang('created-on')}} | {{__lang('due-date')}} | {{__lang('created-by')}} | {{__lang('passmark')}} | {{__lang('submissions')}} | {{__lang('average-score')}} | {{__lang('average-grade')}} | {{__lang('total-passed')}} | {{__lang('total-failed')}} |
---|---|---|---|---|---|---|---|---|---|
{{ $assignment->title }} | {{ showDate('d/M/Y',$assignment->created_at) }} | {{ showDate('d/M/Y',$assignment->due_date) }} | {{ $assignment->admin->user->name }} {{ $assignment->admin->user->last_name }} | {{ $assignment->passmark }}% | {{ $assignment->assignmentSubmissions()->count() }} | {{ round($assignment->assignmentSubmissions()->avg('grade'),1) }} | {{ $testGradeTable->getGrade($assignment->assignmentSubmissions()->avg('grade')) }} | {{ $assignment->assignmentSubmissions()->where('grade','>=',$assignment->passmark)->count() }} | {{ $assignment->assignmentSubmissions()->where('grade','<',$assignment->passmark)->count() }} |
{{__lang('student')}} | {{__lang('average-score')}} | {{__lang('average-grade')}} | @foreach($session->assignments as $assignment){{ limitLength($assignment->title,30) }} | @endforeach
---|---|---|---|
{{ $student->user->name }} {{ $student->user->last_name }} | {{ round($stats['average'],1) }}% | {{ $testGradeTable->getGrade($stats['average']) }} | @foreach($session->assignments as $assignment)@php $result = $assignment->assignmentSubmissions()->where('student_id',$student->student_id)->orderBy('grade','desc')->first() @endphp @if($result) {{ round($result->grade,1) }}% ({{ $testGradeTable->getGrade($result->grade) }}) @endif | @endforeach