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