@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('tests') ]]) @endsection @section('content')
@foreach($allTests as $testId) @php $test = \App\Test::find($testId); @endphp @if($test) @endif @endforeach
{{__lang('test')}} {{__lang('questions')}} {{__lang('passmark')}} {{__lang('attempts')}} {{__lang('created-by')}} {{__lang('average-score')}} {{__lang('average-grade')}} {{__lang('total-passed')}} {{__lang('total-failed')}}
{{ $test->name }} {{ $test->testQuestions()->count() }} {{ $test->passmark }}% {{ $test->studentTests()->count() }} {{ $test->admin->user->name }} {{ $test->admin->user->last_name }} {{ round($test->studentTests()->avg('score'),1) }} {{ $testGradeTable->getGrade($test->studentTests()->avg('score')) }} {{ $test->studentTests()->where('score','>=',$test->passmark)->count() }} {{ $test->studentTests()->where('score','<',$test->passmark)->count() }}
@foreach($tests as $test) @endforeach @foreach($rowset as $row) @php $student = \App\Student::find($row->id) @endphp @if($student) @php $stats = $controller->getStudentTestsStats($row->id); @endphp @foreach($tests as $test) @endforeach @endif @endforeach
{{__lang('student')}} {{__lang('average-score')}} {{__lang('average-grade')}} {{ limitLength($test->name,30) }}
{{ $student->user->name }} {{ $student->user->last_name }} {{ round($stats['average'],1) }}% {{ $testGradeTable->getGrade($stats['average']) }} @php $result =$test->studentTests()->where('student_id',$student->id)->orderBy('score','desc')->first() @endphp @if($result) {{ round($result->score,1) }}% ({{ $testGradeTable->getGrade($result->score) }}) @endif
@foreach($rowset as $row) @php $student = \App\Student::find($row->id) @endphp @if($student) @php $stats = $controller->getStudentTestsStats($row->id); @endphp @endif @endforeach
{{__lang('student')}} {{__lang('average-score')}} {{__lang('average-grade')}}
{{ $student->user->name }} {{ $student->user->last_name }} {{ round($stats['average'],1) }}% {{ $testGradeTable->getGrade($stats['average']) }} {{__lang('Download')}}
@endsection @section('footer') @parent @endsection