@if ($auth)
{{ __('Answer Report') }}
{{ __('Question') }} | {{ __('Your Answer') }} | {{ __('Correct Answer') }} |
---|---|---|
{{ $a->quiz->question }} | {{ $a->user_answer }} | {{ $a->answer }} |
{{ __('score card') }}
{{ __('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}} | @php $correct = $mark*$topics->per_q_mark; @endphp{{$correct}} |