@extends('layouts.admin') @section('content')

Quiz Results: {{ $quizAttempt->quiz->title }}


Topic: {{ $quizAttempt->quiz->topic->title }}


Total Marks: {{ $quizAttempt->total_marks }}

Correct Answers: {{ $quizAttempt->correct_answers }}

Incorrect Answers: {{ $quizAttempt->incorrect_answers }}

Score: {{ $quizAttempt->score }}

User: {{ $quizAttempt->user->name }}

Date: {{ $quizAttempt->created_at->format('d M, Y h:i A') }}


Detailed Results

@foreach($quizAttempt->answers as $answer) @endforeach
Question Your Answer Correct Answer Marks Awarded Correct
{{ $answer->question->title }} {{ is_array(json_decode($answer->answer)) ? implode(', ', json_decode($answer->answer)) : $answer->answer }} {{ $answer->question->correct_answer }} {{ $answer->marks_awarded }} {{ $answer->is_correct ? 'Yes' : 'No' }}
@endsection @section('styles') @endsection