@extends('theme.master') @section('title',"Show Report") @section('content')

@if ($auth)
@if($topics->show_ans==1)

{{ __('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 }}
@endif

{{ __('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') }}

@endif

@endsection @section('custom-script') @endsection