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