@extends('backend.student_backend.student_dashboard') @section('student') @php $minutes = $cbtTest->duration_minutes; $hours = floor($minutes / 60); $remainingMinutes = $minutes % 60; if ($hours > 0 && $remainingMinutes > 0) { $formattedDuration = $hours . 'hr ' . $remainingMinutes . 'mins'; } elseif ($hours > 0) { $formattedDuration = $hours . 'hr'; } else { $formattedDuration = $remainingMinutes . 'mins'; } @endphp

{{ $cbtTest->subject->subject_name ?? 'CBT Test' }}

@if($testStatus === 'not_approved')

CBT Test Not Approved Yet

Contact the Administrator.

@elseif($testStatus === 'not_started')

Test has not started yet.

It will start in :

@elseif($testStatus === 'started')

Test Information

TOTAL QUESTIONS
{{ $cbtTest->questions()->count() }}
DURATION
{{ $formattedDuration }}

Begin Test
@endif
@if($testStatus === 'not_started') @endif @endsection