From 895789cabfcb77e58745042c3c19d473a372bbc1 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Thu, 26 Mar 2026 14:33:18 +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=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Qwen-Coder --- resources/views/admin/tests/edit.blade.php | 76 ++++++++++++++++++++++ resources/views/admin/tests/show.blade.php | 64 ++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 resources/views/admin/tests/edit.blade.php create mode 100644 resources/views/admin/tests/show.blade.php diff --git a/resources/views/admin/tests/edit.blade.php b/resources/views/admin/tests/edit.blade.php new file mode 100644 index 0000000..2277a62 --- /dev/null +++ b/resources/views/admin/tests/edit.blade.php @@ -0,0 +1,76 @@ +@extends('layouts.app') +@section('title', 'Редактировать тест') +@section('content') +
+
+ +
+
+

Редактировать: {{ $test->title }}

+ Назад +
+
+ @csrf @method('PUT') +
+
+
+
+
+ + + @error('title')
{{ $message }}
@enderror +
+
+ + +
+
+
+
+
+
+
+
Настройки
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ shuffle_questions) ? 'checked' : '' }}> + +
+
+ show_correct_answers) ? 'checked' : '' }}> + +
+
+ is_active) ? 'checked' : '' }}> + +
+
+
+
+
+ + Отмена +
+
+
+
+@endsection diff --git a/resources/views/admin/tests/show.blade.php b/resources/views/admin/tests/show.blade.php new file mode 100644 index 0000000..9acc06d --- /dev/null +++ b/resources/views/admin/tests/show.blade.php @@ -0,0 +1,64 @@ +@extends('layouts.app') +@section('title', $test->title) +@section('content') +
+
+ +
+
+

{{ $test->title }}

+ +
+ +
+
+
+
Информация
+
+ + + + + + + + + + +
Тип:{{ $test->type }}
Описание:{{ $test->description ?? '—' }}
Вопросов:{{ $test->questions->count() }}
Время:{{ $test->time_limit_minutes ?? '∞' }} мин
Проходной балл:{{ $test->passing_score }}%
Попыток:{{ $test->max_attempts }}
Перемешивание:@if($test->shuffle_questions)Да@elseНет@endif
Показ ответов:@if($test->show_correct_answers)Да@elseНет@endif
Статус:@if($test->is_active)Активен@elseНе активен@endif
+
+
+
+
+
+
+
Вопросы
+ +
+
+ @if($test->questions->count() > 0) +
    + @foreach($test->questions as $question) +
  • +
    +
    {{ $question->type }}
    + {{ Str::limit($question->question_text, 50) }} +
    + {{ $question->answers->count() }} +
  • + @endforeach +
+ @else +

Нет вопросов

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