@extends('admin/layouts.master') @section('title', 'Quiz Report - Admin') @section('body')
@include('admin.message')

{{ __('adminstaticword.QuizReport') }}

@if ($ans) @foreach($filtStudents as $key => $student) @endforeach @endif
# 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}}
@endsection