@extends('backend.master') @section('mainContent') {!! generateBreadcrumb() !!}

{{__('quiz.Result')}} {{__('common.View')}}

@if(isModuleActive('Org')) @endif @foreach($student_details as $key=>$student) @php if (($student['status']==1)){ $totalQus = totalQuizQus($student['quiz_id']); $totalAns = count($student['quizDetails']); $totalScore = totalQuizMarks($student['quiz_id']); $score = 0; if ($totalAns != 0) { foreach ($student['quizDetails'] as $test) { if ($test->status == 1) { $score += $test->mark ?? 1; } } } }else{ $score='--'; } @endphp @if(isModuleActive('Org')) @endif @php($hasFeedback = strlen(trim((string)($student['feedback'] ?? ''))) > 0) @endforeach
{{__('common.SL')}} {{__('common.Date')}} {{__('quiz.Student')}} {{__('org.Branch')}} {{__('quiz.Status')}} {{__('quiz.Result')}} {{__('quiz.Duration')}} {{__('quiz.Focus lost')}} {{__('quiz.Obtain Marks')}} {{__('quiz.Feedback')}} {{__('common.Action')}}
{{++$key}} {{$student['date']}} {{$student['name']}} {{$student['branch_name']??''}} {{$student['status']==1?'Publish':'Pending'}} @if($student['status']==1) {{$student['pass']==1?'Pass':'Fail'}} @else -- @endif {{$student['duration']}} {{__('quiz.Min')}} {{@$student['focus_lost']??0}} {{@$score}} @if($hasFeedback) {{__('common.Yes')}} @else {{__('common.No')}} @endif
@endsection @push('scripts') @endpush