@extends('partials.app') @section('content')

Employee Info

{{ $result->user->name }}

{{ $result->user->email }}


Module: {{ $result->module->name }}
Date: {{ $result->created_at->format('d M Y, h:i A') }}
Status: {{ $result->is_passed ? 'PASSED' : 'FAILED' }}

{{ round($result->percentage) }}%

Final Score

{{ $result->correct_answers }} correct out of {{ $result->total_questions_attempted }}

Question Breakdown

@if(!empty($details)) @foreach($details as $index => $item)
Question {{ $index + 1 }}
@if($item['is_correct']) Correct @else Incorrect @endif

{{ $item['question_text'] }}

User Answer: {{ $item['user_answer'] ?? 'N/A' }}
Correct Answer: {{ $item['actual_answer'] }}
@endforeach @else

Detailed question breakdown was not recorded for this attempt.

@endif
@endsection