diff --git a/resources/views/admin/quizzes/questions.blade.php b/resources/views/admin/quizzes/questions.blade.php index f694bdf..d87527a 100644 --- a/resources/views/admin/quizzes/questions.blade.php +++ b/resources/views/admin/quizzes/questions.blade.php @@ -1,140 +1,165 @@ @extends('admin.layouts.app') @section('content') -
-

مدیریت سوالات: {{ $quiz->title }}

- بازگشت به لیست آزمون‌ها -
+
+

مدیریت سوالات: {{ $quiz->title }}

+ بازگشت به لیست آزمون‌ها +
-
- -
-
-
-
افزودن سوال جدید
-
-
-
- @csrf +
+ +
+
+
+
افزودن سوال جدید
+
+
+ + + @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif -
- - -
+ + @csrf + +
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
- -
-
گزینه‌ها و انتخاب پاسخ صحیح:
- @for($i = 0; $i < 4; $i++) -
-
- -
- + +
+
گزینه‌ها و انتخاب پاسخ صحیح:
+ @for($i = 0; $i < 4; $i++) +
+
+ +
- @endfor - دکمه رادیویی کنار هر گزینه نشان‌دهنده گزینه صحیح است. -
+ + +
+ @endfor + دکمه رادیویی کنار هر گزینه نشان‌دهنده گزینه صحیح است. +
-
- - -
+
+ + +
- - -
+ +
+
- -
-
-
-
سوالات ثبت شده ({{ $quiz->questions->count() }})
-
-
- @forelse($quiz->questions as $index => $question) -
-
- سوال شماره {{ $index + 1 }} -
- @if($question->subject) - {{ $question->subject->title }} - @endif - + +
+
+
+
سوالات ثبت شده ({{ $quiz->questions->count() }})
+
+
+ @forelse($quiz->questions as $index => $question) +
+
+ سوال شماره {{ $index + 1 }} +
+ @if($question->subject) + {{ $question->subject->title }} + @endif + {{ $question->type === 'multiple_choice' ? 'تستی' : 'تشریحی' }} -
-
- -

{{ $question->question_text }}

- - @if($question->type === 'multiple_choice') -
- @foreach($question->options as $optIndex => $option) -
-
- {{ $optIndex + 1 }}) {{ $option->option_text }} -
-
- @endforeach -
- @endif - - @if($question->solution_explanation) -
- پاسخ تشریحی / مستند قانون: {{ $question->solution_explanation }} -
- @endif - -
-
- @csrf - @method('DELETE') - -
- @empty -

هنوز سوالی برای این آزمون ثبت نشده است.

- @endforelse -
+ +

{{ $question->question_text }}

+ + @if($question->type === 'multiple_choice') +
+ @foreach($question->options as $optIndex => $option) +
+
+ {{ $optIndex + 1 }}) {{ $option->option_text }} +
+
+ @endforeach +
+ @endif + + @if($question->solution_explanation) +
+ پاسخ تشریحی / مستند قانون: {{ $question->solution_explanation }} +
+ @endif + +
+
+ @csrf + @method('DELETE') + +
+
+
+ @empty +

هنوز سوالی برای این آزمون ثبت نشده است.

+ @endforelse
- - +
@endsection + +@section('scripts') + +@endsection \ No newline at end of file