@if ($auth)
{{ __('frontstaticword.answerreoprt') }}
{{ __('frontstaticword.Question') }} | {{ __('frontstaticword.YourAnswer') }} | {{ __('frontstaticword.CorrectAnswer') }} |
---|---|---|
{{ $a->quiz->question }} | {{ $a->user_answer }} | {{ $a->answer }} |
{{ __('frontstaticword.scorecard') }}
{{ __('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}} | @php $correct = $mark*$topics->per_q_mark; @endphp{{$correct}} |