@extends('admin.layouts.master') @section('title','Quiz Report View') @section('maincontent') @include('admin.layouts.topbar',$data)
{{ __('User') }} | {{ __('Email') }} | {{ __('Quiz') }} | {{ __('Marks Get') }} | {{ __('Total Marks') }} |
---|---|---|---|---|
{{ $q['fname'] }} {{$q['lname']}} | {{ $q['useremail'] }} | {{ $q['topictitle'] }} | @php $mark=0; $correct = collect(); foreach($ans as $answer){ if($answer->type != 1){ if($answer->user_answer == $answer->answer){ $mark++; } }else{ if($answer->txt_approved == 1){ $mark++; } } } $correct = $mark*$q['per_q_mark']; @endphp {{$correct}} | {{ $q['quizquestion_count'] * $q['per_q_mark'] }} |