@extends('backend.teacher_backend.teacher_dashboard') @section('teacher')

ADD CBT QUESTIONS

My CBT Tests

@if($cbtTests->isEmpty())
you haven't created any CBT yet.
@else @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 Instructions 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')
@endif
@endsection