@extends('surface.app') @section('head') Written Exam Result - {{ $site_info->name ?? '' }} @endsection @section('content')
{{-- Left column: Sidebar --}}
@include('frontend.user.user_dashboard_sidebar')
{{-- Right column: Content --}}
{{-- Exam Summary Card --}}

Written Exam Result

{{ $exam->name ?? '' }}

Total Questions

{{ $exam->total_written_qs ?? 0 }}

Full Marks

{{ $exam->total_mark - $exam->total_mcq_qs * $exam->per_mcq_qs_mark }}

Duration

@php $totalMinutes = $exam->written_duration; $hours = floor($totalMinutes / 60); $minutes = $totalMinutes % 60; @endphp @if ($hours > 0){{ $hours }}h @endif @if ($minutes > 0){{ $minutes }}min @endif

{{-- Question Answer Cards --}} @foreach ($student_exam_details as $key => $student_exam_detail) @php $item = App\Models\WrittenQuestion::where('id', $student_exam_detail->question_id)->first(); @endphp
{{-- Question Header --}}
Question {{ $key + 1 }} Mark: {{ $student_exam_detail->mark ?? 0 }}
{{-- Uddipok / Stimulus --}} @if ($item->uddipok)

উদ্দীপক

{!! $item->uddipok !!}
@endif {{-- Question --}} @if ($item->question)
{!! $item->question !!}
@endif
{{-- Student Answer --}}

Student's Answer

{!! $student_exam_detail->student_answer !!}
@endforeach
@endsection