@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')
{{__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() }} |
{{__lang('student')}} | {{__lang('average-score')}} | {{__lang('average-grade')}} | @foreach($tests as $test){{ limitLength($test->name,30) }} | @endforeach
---|---|---|---|
{{ $student->user->name }} {{ $student->user->last_name }} | {{ round($stats['average'],1) }}% | {{ $testGradeTable->getGrade($stats['average']) }} | @foreach($tests as $test)@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 | @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')}} |