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)
{{ $question->question_text }}
- - @if($question->type === 'multiple_choice') -Попыток пока не было