@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')
@foreach($session->assignments as $assignment) @endforeach
{{__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) }} @if($assignment->admin->user) {{ $assignment->admin->user->name }} {{ $assignment->admin->user->last_name }} @endif {{ $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() }}
@foreach($session->assignments as $assignment) @endforeach @foreach($rowset as $row) @php $student = \App\Student::find($row->id) @endphp @if($student) @php $stats = $controller->getStudentAssignmentStats($row->id); @endphp @foreach($session->assignments as $assignment) @endforeach @endif @endforeach
{{__lang('student')}} {{__lang('average-score')}} {{__lang('average-grade')}} {{ limitLength($assignment->title,30) }}
@if($student->user) {{ $student->user->name }} {{ $student->user->last_name }} @endif {{ round($stats['average'],1) }}% {{ $testGradeTable->getGrade($stats['average']) }} @php $result = $assignment->assignmentSubmissions()->where('student_id',$student->id)->orderBy('grade','desc')->first() @endphp @if($result) {{ round($result->grade,1) }}% ({{ $testGradeTable->getGrade($result->grade) }}) @endif
@endsection