@if ($auth)
@if($topics->show_ans==1)
@endif
{{ __('frontstaticword.answerreoprt') }}
@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 }} |
{{ __('frontstaticword.scorecard') }}
@php
$correct = $mark*$topics->per_q_mark;
@endphp
{{ __('frontstaticword.TotalQuestion') }} | {{ __('frontstaticword.CorrectQuestions') }} | {{ __('frontstaticword.PerQuestionMark') }} | {{ __('frontstaticword.TotalMarks') }} |
---|---|---|---|
{{$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}} |
{{ __('frontstaticword.ThankYou') }}
@if($topics->quiz_again == '1')
{{ __('frontstaticword.TryAgain') }}
@endif
{{ __('frontstaticword.Back') }}