@extends('layouts.app') @section('title', 'Edit question') @section('content')

Edit question

Update the question question, options, and correct answer

question Details

Update the question content and configuration

Editing
@csrf @method('PUT')

Current Topic

{{ $question->topic->name }}

{{ $question->topic->subject->name }}

Question Preview

{{ $question->question }}

Created {{ $question->created_at->diffForHumans() }}
@error('topic_id')
{{ $message }}
@enderror

Choose the topic this question question belongs to

@error('question')
{{ $message }}
@enderror

Write a clear and concise question for the question

Answer Options

Select one correct answer
@foreach($question->options as $index => $option)
{{ $index + 1 }}
option_text) }}" placeholder="Enter option text..." class="block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition duration-150 ease-in-out" required>
@if($option->is_correct)
Currently marked as correct answer
@endif
@endforeach
@error('correct_option')
{{ $message }}
@enderror
Cancel

Tips for creating effective questions

  • Ensure questions are clear and unambiguous
  • Make sure only one correct answer is selected
  • Use plausible distractors for wrong options
  • Keep option lengths similar to avoid giving hints
@endsection