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