@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('classes')
]])
@endsection
@section('content')
# |
{{__lang('classes')}} |
@if($session->type=='c')
{{__lang('lectures')}} |
@endif
{{__lang('students-completed')}} |
{{__lang('completion-percentage')}} |
@foreach($session->lessons()->orderBy('pivot_sort_order')->orderBy('pivot_lesson_date')->get() as $row)
{{ $loop->iteration }} |
{{ $row->name }} |
@if($session->type=='c')
{{ $row->lectures()->count() }} |
@endif
@php
$totalAttended = $attendanceTable->getTotalStudentsForSessionAndLesson($session->session_id,$row->id);
@endphp
{{ $totalAttended }} |
@php
$total = $session->studentCourses()->count();
if(empty($total)){
$total=1;
}
@endphp
{{ ($totalAttended/$total)*100 }}% |
@endforeach
{{__lang('enrolled-students')}}: |
{{ $session->studentCourses()->count() }} |
{{__lang('total-classes')}}: |
{{ $session->lessons()->count() }} |
{{__lang('total-students-attended')}}: |
{{ $attendanceTable->getTotalStudentsForSession($id) }} |
@endsection