27 lines
1.3 KiB
PHP
27 lines
1.3 KiB
PHP
<x-app-layout>
|
|
<div class="max-w-2xl mx-auto p-4 sm:p-6 lg:p-8">
|
|
<form method="POST" action="{{ route('questions.update', $question) }}">
|
|
@csrf
|
|
@method("patch")
|
|
<div class="flex flex-col gap-1">
|
|
<x-input-label>{{ __("Question") }}</x-input-label>
|
|
<x-text-input name="question" placeholder="{{ __('Question') }}" value="{{ old('question', $question->question) }}" />
|
|
<x-input-error :messages="$errors->get('question')" class="mt-2" />
|
|
|
|
<x-input-label>{{ __("Answer") }}</x-input-label>
|
|
<x-text-input name="answer" placeholder="{{ __('Answer') }}" value="{{ old('answer', $question->answer) }}" />
|
|
<x-input-error :messages="$errors->get('answer')" class="mt-2" />
|
|
|
|
<x-input-label>{{ __("Points") }}</x-input-label>
|
|
<x-text-input name="points" placeholder="{{ __('Points') }}" value="{{ old('points', $question->points) }}" />
|
|
<x-input-error :messages="$errors->get('points')" class="mt-2" />
|
|
</div>
|
|
|
|
<div class="mt-4 space-x-2">
|
|
<x-primary-button>{{ __("Save") }}</x-primary-button>
|
|
<a href="{{ route('tests.edit', $question->test_id) }}">{{ __("Cancel") }}</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</x-app-layout>
|