@extends('adminlte::page') @section('title', 'Add Aptitude Test Attempt') @section('content_header')

Record Student Attempt

@stop @section('content')
@csrf
@foreach($questions as $section => $sectionQuestions)

{{ $section }}


@foreach($sectionQuestions as $question)
@if($question->image)
@endif {{-- MCQ QUESTIONS --}} @if($question->type == 'mcq') @php $options = json_decode($question->options, true) ?? []; @endphp @foreach($options as $key => $opt)
@if(!empty($opt['image']))
@endif
@endforeach {{-- TRUE/FALSE --}} @elseif($question->type == 'true_false')
{{-- NUMERICAL --}} @elseif($question->type == 'numerical') @endif
@endforeach @endforeach
@stop @section('css') @stop @section('js') @stop