@if(isModuleActive('Org')) @endif @foreach($quizzes as $key=>$quiz) @php $statistic =$quiz->totalQuizStatistic(); $pass = $statistic['pass']; $total = $quiz->total_enrolled; $percentage = 0; if ($total != 0) { $percentage = ($pass / $total) * 100; if ($percentage > 100) { $percentage = 100; } } $percentage= $percentage . '%'; @endphp @if(isModuleActive('Org')) @endif @endforeach
{{__('SL')}} {{__('quiz.Quiz')}}{{__('courses.Required Type')}}{{__('courses.Enrolled')}} {{__('courses.Not Started yet')}} {{__('common.Fail')}} {{__('common.Pass')}} {{__('quiz.Taken Pass Rate')}}
{{++$key}} {{$quiz->title}}{{$quiz->required_type == 1 ? trans('courses.Compulsory') : trans('courses.Open')}}{{$quiz->total_enrolled}} {{$statistic['not_start']}} {{$statistic['fail']}} {{$statistic['pass']}} {{$percentage}}