@if ($auth)
@if($topics->show_ans==1)
@endif
{{ __('Answer Report') }}
@php
$x = $count_questions;
$y = 1;
@endphp
@foreach($ans as $key=> $a)
@php
$y++;
if($y > $x){
break;
}
@endphp
@endforeach
{{ __('Question') }} | {{ __('Your Answer') }} | {{ __('Correct Answer') }} |
---|---|---|
{{ $a->quiz->question }} | {{ $a->user_answer }} | {{ $a->answer }} |
{{ __('score card') }}
@php
$correct = $mark*$topics->per_q_mark;
@endphp
{{ __('Total Question') }} | {{ __('Correct Questions') }} | {{ __('Per Question Mark') }} | {{ __('Total Marks') }} |
---|---|---|---|
{{$count_questions}} | @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}} | {{$topics->per_q_mark}} | {{$correct}} |
{{ __('Thank You') }}
@if($topics->quiz_again == '1')
{{ __('Try Again') }}
@endif
{{ __('Back') }}