@if(isModuleActive('Org')) @endif @foreach($courses as $key=>$course) @php $statistic =$course->totalStatistic(); $finished =$statistic['finished']; $total = $course->total_enrolled; $percentage = 0; if ($total != 0) { $percentage = ($finished / $total) * 100; if ($percentage > 100) { $percentage = 100; } } $percentage= round($percentage) . '%'; @endphp @if(isModuleActive('Org')) @endif @endforeach
{{__('SL')}} {{__('courses.Course')}}{{__('courses.Required Type')}}{{__('courses.Enrolled')}} {{__('courses.Not Started yet')}} {{__('courses.In Progress')}} {{__('courses.Finished')}} {{__('courses.Finish Rate')}}
{{++$key}} {{$course->title}}{{$course->required_type == 1 ? trans('courses.Compulsory') : trans('courses.Open')}}{{$course->total_enrolled}} {{$statistic['not_start']}} {{$statistic['in_process']}} {{$statistic['finished']}} {{$percentage}}