@extends('admin/layouts.master') @section('title', 'Topic Tests - Admin') @section('body')
@include('admin.message')
@php $correct = $mark*$topics->per_q_mark; @endphp @php $wrong = $marks*$topics->minus_marks; $totalnumber= $correct- $obj ; @endphp
Total Question {{ __('frontstaticword.PerQuestionMark') }} {{ __('Minus Marking ') }} Correct {{ __('Wrong Question') }} {{ __('Total') }} {{ __('Not Attempt') }} {{ __('frontstaticword.TotalMarks') }}
{{$count_questions}} {{$topics->per_q_mark}} {{ $topics->minus_marks }} @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}} @php $marks = 0; $obj=0; $corrects = collect(); @endphp @foreach ($ans as $answers) @if($answers->type=="0") @if ($answers->answer != $answers->user_answer && $answers->user_answer !="E") @php $marks++; $obj++; @endphp @endif @endif @endforeach @php $marks = 0; $tita=0; $corrects = collect(); @endphp @foreach ($ans as $answers) @if($answers->type=="1") @if ($answers->answer != $answers->user_answer && !empty($answers->user_answer)) @php $marks++; $tita++; @endphp @endif @endif @endforeach @php $cas = $obj; $wrong=$obj+$tita; @endphp MCQ-{{$obj}} || TITA-{{$tita}} {{$wrong}} @php $markm = 0; $cam=0; $corrects = collect(); @endphp @foreach ($ans as $answers) @if ( $answers->user_answer == 'E' || empty($answers->user_answer)) @php $markm++; $cam++; @endphp @endif @endforeach @php $notattempt= $cam; $totalattempt=$notattempt; @endphp {{$totalattempt}} {{$totalnumber}}
@endsection