@extends('backend.student_backend.student_dashboard') @section('student')
No CBT tests available at the moment
@else @php // Get the logged-in student record $student = \App\Models\Student::where('user_id', \Illuminate\Support\Facades\Auth::id())->first(); $studentId = $student?->id; @endphp| Class | Subject | Assessment | Total Scores | Start Time | Duration | End Time | Action |
|---|---|---|---|---|---|---|---|
| {{ strtoupper($test->class->class_name) }} | {{ ucwords(strtolower($test->subject->subject_name)) }} | {{ $test->assessment_type }} | @if($attempt && $attempt->score !== null) {{ $attempt->score }} @else - @endif | {{ $test->start_time ? \Carbon\Carbon::parse($test->start_time)->format('d M Y, h:i A') : 'No Start Time' }} | {{ $formattedDuration }} | {{ $test->end_time ? \Carbon\Carbon::parse($test->end_time)->format('d M Y, h:i A') : 'No End Time' }} | @if(!$attempt) {{-- No attempt yet --}} Start Test @elseif($attempt->status === 'in_progress') In Progress @elseif($attempt->status === 'completed') @else @endif |