@if($topics->show_ans==1) @php $x = $count_questions; $y = 1; @endphp @foreach($ans as $key=> $a) @php $y++; if($y > $x){ break; } @endphp @endforeach
{{ __('frontstaticword.Question') }} {{ __('frontstaticword.YourAnswer') }} {{ __('frontstaticword.CorrectAnswer') }}
{{ $a->quiz->question }} {{ $a->user_answer }} {{ $a->answer }}
@endif

{{ __('frontstaticword.scorecard') }}


@php $correct = $mark*$topics->per_q_mark; @endphp @php $wrong = $marks*$topics->minus_marks; $totalnumber= $correct- $obj ; @endphp
Total Question {{$count_questions}}
Per question Mark {{$topics->per_q_mark}}
Minus Mark {{ $topics->minus_marks }}
Correct @php $mark = 0; $ca=0; $correct = collect(); @endphp @foreach ($ans as $answer) @if ($answer->answer == $answer->user_answer) @php $mark++; $ca++; @endphp @endif @endforeach {{$ca}}
Wrong Answer @php $marks = 0; $obj=0; $corrects = collect(); @endphp @foreach ($ans as $answers) @if($answers->type=="0") @if ($answers->answer != $answers->user_answer && $answers->user_answer !="E") @php $marks++; $obj++; @endphp @endif @endif @endforeach @php $marks = 0; $tita=0; $corrects = collect(); @endphp @foreach ($ans as $answers) @if($answers->type=="1") @if ($answers->answer != $answers->user_answer && !empty($answers->user_answer)) @php $marks++; $tita++; @endphp @endif @endif @endforeach @php $cas = $obj; $wrong=$obj+$tita; @endphp MCQ-{{$obj}} || TITA-{{$tita}}
{{ __('Total Wrong') }} {{$wrong}}
{{ __('Not Attempt') }} @php $markm = 0; $cam=0; $corrects = collect(); @endphp @foreach ($ans as $answers) @if ( $answers->user_answer == 'E' || empty($answers->user_answer)) @php $markm++; $cam++; @endphp @endif @endforeach @php $notattempt= $cam; $totalattempt=$notattempt; @endphp {{$totalattempt}}
{{ __('frontstaticword.CorrectAnswer') }}{{$totalnumber}}