@extends('backend.admin_backend.admin_dashboard') @section('admin')

ADD CBT QUESTIONS

My CBT Tests

@if(!request()->filled('class_id'))
Select a class to view CBT tests.
@elseif($cbtTests->isEmpty())
No CBT test available for this class yet.
@endif @if($cbtTests->isNotEmpty()) @if(session('success'))
{{ session('success') }}
@endif @foreach($cbtTests as $key => $test) @php $minutes = $test->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 @endforeach
S/N Class Subject Instruction Term Session Duration(min) Total Questions Type Action
{{$key + 1}} {{$test->class->class_name}} {{$test->subject->subject_name}} {{$test->title}} {{$test->term}} {{$test->session}} {{ $formattedDuration }} {{ $test->questions->count() }} {{$test->assessment_type}}
Edit Test Add Questions Edit Questions
@csrf @method('DELETE')
@if($test->is_approved)
@csrf
@else
@csrf
@endif
@endif
@endsection