@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('students') ]]) @endsection @section('content')
# | {{__lang('student-name')}} | {{__lang('enrolled-on')}} | {{__lang('classes-attended')}} | {{__lang('progress')}} | {{__lang('tests-taken')}} | {{__lang('average-test-score')}} | {{__lang('test-grade')}} | {{__lang('homework-submitted')}} | {{__lang('average-homework-score')}} | {{__lang('homework-grade')}} | {{__lang('instructor-chats')}} | {{__lang('forum-topics')}} | {{__lang('forum-posts')}} |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | @if($student->user) {{ $student->user->name.' '.$student->user->last_name }} @endif | @php $enrollment = $student->studentCourses()->where('course_id',$id)->first(); @endphp @if($enrollment) {{ showDate('d/M/Y',$enrollment->created_at) }} @endif | @php $attendance = $student->attendances()->where('course_id',$id)->count(); @endphp{{ $attendance }} | @php echo round(($attendance/$totalSessionLessons)*100) @endphp% | @php $testStats = $controller->getStudentTestsStats($row->id); @endphp{{ $testStats['testsTaken'] }} | {{ $testStats['average'] }} | {{ $testGradeTable->getGrade($testStats['average']) }} | @php $homeworkStats = $controller->getStudentAssignmentStats($row->id); @endphp{{ $homeworkStats['submissions'] }} | {{ $homeworkStats['average'] }} | {{ $testGradeTable->getGrade($homeworkStats['average']) }} | {{ $student->discussions()->where('course_id',$id)->count() }} | {{ $student->user->forumTopics()->where('course_id',$id)->whereHas('user',function ($q){ $q->where('role_id',2); })->count() }} | {{ $controller->getStudentTotalPosts($row->id) }} |
{{__lang('enrolled-students')}}: | {{ $session->studentCourses()->count() }} |
{{__lang('total-classes')}}: | {{ $session->lessons()->count() }} |
{{__lang('total-students-attended')}}: | {{ $attendanceTable->getTotalStudentsForSession($id) }} |
{{__lang('total-tests')}}: | {{ count($allTests) }} |
{{__lang('total-homework')}}: | {{ $session->assignments()->count() }} |
# | {{__lang('class')}} | @if($session->type=='c'){{__lang('lectures')}} | @endif{{__lang('students-completed')}} | {{__lang('completion-percentage')}} |
---|---|---|---|---|
{{ $loop->iteration }} | {{ $row->name }} | @if($session->type=='c'){{ $row->lectures()->count() }} | @endif @php $totalAttended = $attendanceTable->getTotalStudentsForSessionAndLesson($session->id,$row->id); @endphp{{ $totalAttended }} | @php $total = $session->studentCourses()->count(); if(empty($total)){ $total=1; } @endphp{{ ($totalAttended/$total)*100 }}% |
{{__lang('test')}} | {{__lang('questions')}} | {{__lang('passmark')}} |
---|---|---|
{{ $test->name }} | {{ $test->testQuestions()->count() }} | {{ $test->passmark }}% |
{{__lang('homework')}} | {{__lang('created-on')}} | {{__lang('due-date')}} | {{__lang('created-by')}} | {{__lang('passmark')}} | {{__lang('submissions')}} |
---|---|---|---|---|---|
{{ $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() }} |