From 3c3819d3b18afa30eed2176c3d951eb32bbf4605 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Thu, 2 Apr 2026 16:56:40 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=D0=91=D0=B5=D0=B7=D0=BE=D0=BF=D0=B0?= =?UTF-8?q?=D1=81=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20=D1=82=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=20-=20=D0=BD=D0=B5=20=D0=BF=D0=BE=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D1=8B=D0=B2=D0=B0=D1=82=D1=8C=20=D0=B2=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Удалён блок с вопросами из student/tests/show ✅ Контроллер не загружает questions.answers ✅ Предупреждение что вопросы будут при тестировании ✅ Блок с попытками (пока пусто) Co-authored-by: Qwen-Coder --- .../Controllers/Student/TestController.php | 3 +- resources/views/student/tests/show.blade.php | 54 ++++++------------- 2 files changed, 19 insertions(+), 38 deletions(-) diff --git a/app/Http/Controllers/Student/TestController.php b/app/Http/Controllers/Student/TestController.php index 2ed5c64..ff96d1f 100755 --- a/app/Http/Controllers/Student/TestController.php +++ b/app/Http/Controllers/Student/TestController.php @@ -64,7 +64,8 @@ class TestController extends Controller abort(403, 'У вас нет доступа к этому тесту'); } - $test->load(['questions.answers', 'course']); + // НЕ загружаем вопросы и ответы - только общую информацию + $test->load(['course']); return view('student.tests.show', compact('test')); } diff --git a/resources/views/student/tests/show.blade.php b/resources/views/student/tests/show.blade.php index 8f411dd..defcdb8 100644 --- a/resources/views/student/tests/show.blade.php +++ b/resources/views/student/tests/show.blade.php @@ -20,8 +20,15 @@ @if($test->passing_score)
Проходной балл: {{ $test->passing_score }}%
@endif +
Время: Не ограничено
+ +
+ + Важно! Вопросы будут показаны только после начала тестирования. + У вас будет одна попытка для прохождения теста. +
@@ -32,43 +39,12 @@
- - - -
-
Вопросы
-
-
- @foreach($test->questions as $index => $question) -
-

- -

-
-
-

{{ $question->question_text }}

- - @if($question->type === 'multiple_choice') -
- @foreach($question->answers as $answer) -
- - -
- @endforeach -
- @endif -
-
+ +
+
Попытки
+
+

Попыток пока не было

- @endforeach
@@ -79,7 +55,11 @@ @push('scripts') @endpush