From 54e13c7c96e2959ecf47d52074edca26ebd1819d Mon Sep 17 00:00:00 2001 From: mirivlad Date: Thu, 26 Mar 2026 17:13:59 +0800 Subject: [PATCH] =?UTF-8?q?Feat:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20show=20=D0=B8=20edit=20=D1=88=D0=B0=D0=B1?= =?UTF-8?q?=D0=BB=D0=BE=D0=BD=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D0=BE?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Qwen-Coder --- .../views/admin/questions/edit.blade.php | 128 ++++++++++++++++++ .../views/admin/questions/show.blade.php | 70 ++++++++++ 2 files changed, 198 insertions(+) create mode 100644 resources/views/admin/questions/edit.blade.php create mode 100644 resources/views/admin/questions/show.blade.php diff --git a/resources/views/admin/questions/edit.blade.php b/resources/views/admin/questions/edit.blade.php new file mode 100644 index 0000000..40e3e21 --- /dev/null +++ b/resources/views/admin/questions/edit.blade.php @@ -0,0 +1,128 @@ +@extends('layouts.app') +@section('title', 'Редактировать вопрос') +@section('content') +
+
+ +
+
+

Редактировать вопрос

+ Назад +
+
+ @csrf @method('PUT') + +
+
+
+
+
+ + +
+
+ + +
+
+ + + Отображается после ответа +
+ +
+ +
+ @foreach($question->answers as $answer) +
+ + + + +
+ @endforeach +
+ +
+ + +
+
+
+
+
+
+
Настройки
+
+ + +
+
+ + +
+
+ is_required) ? 'checked' : '' }}> + +
+
+
+
+
+ + Отмена +
+
+
+
+ +@endsection diff --git a/resources/views/admin/questions/show.blade.php b/resources/views/admin/questions/show.blade.php new file mode 100644 index 0000000..e6d0c85 --- /dev/null +++ b/resources/views/admin/questions/show.blade.php @@ -0,0 +1,70 @@ +@extends('layouts.app') +@section('title', $question->question_text) +@section('content') +
+
+ +
+
+

Вопрос #{{ $question->id }}

+ +
+ +
+
+
+
Информация
+
+ + + + + + + +
Тип:{{ $question->type }}
Вопрос:{{ $question->question_text }}
Пояснение:{{ $question->explanation ?? '—' }}
Баллы:{{ $question->score }}
Порядок:{{ $question->sort_order }}
Обязательный:@if($question->is_required)Да@elseНет@endif
+
+
+
+
+
+ @if($question->type === 'matching') +
Пары
+
+ @if($question->matchingPairs->count() > 0) +
    + @foreach($question->matchingPairs as $pair) +
  • {{ $pair->left_text }}{{ $pair->right_text }} ({{ $pair->match_score }} балл.)
  • + @endforeach +
+ @else +

Нет пар

+ @endif +
+ @else +
Ответы
+
+ @if($question->answers->count() > 0) +
    + @foreach($question->answers as $answer) +
  • + {{ Str::limit($answer->answer_text, 50) }} + @if($answer->is_correct)@endif +
  • + @endforeach +
+ @else +

Нет ответов

+ @endif +
+ @endif +
+
+
+
+
+
+@endsection