@extends('admin.layouts.master') @section('title','Report') @section('maincontent') @component('components.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('Report') }} @endslot @slot('menu1') {{ __(' Quiz Report') }} @endslot @endcomponent
{{ __('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'] }} |