@extends('admin.layout') @section('content')

Questions for: {{ $test->title }}

Subject: {{ $test->subject->name }} | Level: {{ $test->competitionLevel->name ?? 'N/A' }}

Back to Test Add New Question
@forelse($questions as $question) @empty @endforelse
Question Options Correct Answer Points Difficulty Time Estimate Actions
{{ Str::limit($question->question_text, 100) }}
@if($question->explanation)
{{ Str::limit($question->explanation, 50) }}
@endif
@php $options = json_decode($question->options, true); @endphp @if(is_array($options)) {{ count($options) }} options @else N/A @endif Option {{ $question->correct_answer + 1 }} {{ $question->points }} {{ ucfirst($question->difficulty) }} {{ $question->time_estimate ? $question->time_estimate . 's' : 'N/A' }}
@csrf @method('DELETE')
No questions found.
{{ $questions->links() }}

Total Questions

{{ $questions->total() }}

Easy Questions

{{ $questions->where('difficulty', 'easy')->count() }}

Medium Questions

{{ $questions->where('difficulty', 'medium')->count() }}

Hard Questions

{{ $questions->where('difficulty', 'hard')->count() }}

@endsection