@extends('admin.layouts.master') @section('title','Report') @section('maincontent') @include('admin.layouts.topbar',$data)
# | {{ __('User') }} | {{ __('Email') }} | {{ __('Quiz') }} | {{ __('Marks Get') }} | {{ __('Total Marks') }} |
---|---|---|---|---|---|
{{$key+1}} | {{$student->fname}} | {{$student->email}} | {{$topics->title}} | @php $mark = 0; $correct = collect(); @endphp @foreach ($ans as $answer) @if ($answer->user_id == $student->id && $answer->answer == $answer->user_answer) @php $mark++; @endphp @endif @endforeach @php $correct = $mark*$topics->per_q_mark; @endphp {{$correct}} | {{$c_que*$topics->per_q_mark}} |