@extends('layouts.admin') @section('title', 'Quiz Results') @section('page-title', 'Quiz Results') @section('content')

Quiz Results

{{ $employeeQuiz->quiz->name }}

{{ \Carbon\Carbon::parse($employeeQuiz->completed_at)->format('M d, Y g:i A') }}

{{ $percentage }}%
Your Score
{{ $correctAnswers }}
Correct
{{ $totalQuestions - $correctAnswers }}
Incorrect
{{ $totalQuestions }}
Total
Performance Analysis
@if ($percentage >= 90)
Excellent
@elseif ($percentage >= 80)
Great
@elseif ($percentage >= 70)
Good
@elseif ($percentage >= 60)
Fair
@else
Needs Improvement
@endif
Score Breakdown
Correct Answers {{ $correctAnswers }}/{{ $totalQuestions }}
Incorrect Answers {{ $totalQuestions - $correctAnswers }}/{{ $totalQuestions }}

{{ \Carbon\Carbon::parse($employeeQuiz->started_at)->diffForHumans($employeeQuiz->completed_at, true) }}

Time Taken

{{ number_format(($correctAnswers / $totalQuestions) * 100, 1) }}%

Accuracy Rate

{{ $score }}

Raw Score

{{ \Carbon\Carbon::parse($employeeQuiz->completed_at)->format('M d') }}

Completion Date

Performance Insights
@if ($percentage >= 90)
Outstanding Performance!

You've demonstrated exceptional knowledge and understanding of the material.

@elseif ($percentage >= 80)
Great Job!

You have a solid understanding of the concepts. Keep up the excellent work!

@elseif ($percentage >= 70)
Good Performance

You're on the right track. Consider reviewing areas where you struggled.

@elseif ($percentage >= 60)
Room for Improvement

Focus on understanding the core concepts better. Practice makes perfect!

@else
Needs Improvement

Consider reviewing the material thoroughly before attempting again.

@endif
Quiz Details
Quiz Name: {{ $employeeQuiz->quiz->name }}
Started: {{ \Carbon\Carbon::parse($employeeQuiz->started_at)->format('M d, Y g:i A') }}
Completed: {{ \Carbon\Carbon::parse($employeeQuiz->completed_at)->format('M d, Y g:i A') }}
Duration: {{ \Carbon\Carbon::parse($employeeQuiz->started_at)->diffForHumans($employeeQuiz->completed_at, true) }}
Employee ID: {{ $employeeQuiz->employee_id }}
@endsection