From dc5418fdfe000bdf336b6415bb6d3f9cd9774d79 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Thu, 26 Mar 2026 16:18:55 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D1=8B=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D1=82=D0=B5=D1=81=D1=82=D1=8B=20=D0=B8=20?= =?UTF-8?q?=D0=B2=D0=BE=D0=BF=D1=80=D0=BE=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ show.blade.php теста - ссылки на вопросы работают ✅ show.blade.php курса - ссылки на тесты работают ✅ Сайдбар - ссылка Тесты ведёт на список курсов ✅ Вопросы кликабельны в списке Co-authored-by: Qwen-Coder --- resources/views/admin/courses/show.blade.php | 14 ++++++++++++-- resources/views/admin/tests/show.blade.php | 6 ++++-- resources/views/partials/_sidebar.blade.php | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/resources/views/admin/courses/show.blade.php b/resources/views/admin/courses/show.blade.php index a40d872..66c1fd7 100644 --- a/resources/views/admin/courses/show.blade.php +++ b/resources/views/admin/courses/show.blade.php @@ -67,8 +67,18 @@
- @if($course->tests->count() > 0)
    @foreach($course->tests as $test)
  • {{ $test->title }}{{ $test->type }}
  • @endforeach
- @else

Нет тестов

@endif + @if($course->tests->count() > 0) +
    + @foreach($course->tests as $test) +
  • + {{ $test->title }} + {{ $test->type }} +
  • + @endforeach +
+ @else +

Нет тестов

+ @endif
diff --git a/resources/views/admin/tests/show.blade.php b/resources/views/admin/tests/show.blade.php index a65ca99..e2eeb2b 100644 --- a/resources/views/admin/tests/show.blade.php +++ b/resources/views/admin/tests/show.blade.php @@ -44,8 +44,10 @@ @foreach($test->questions as $question)
  • -
    {{ $question->type }}
    - {{ Str::limit($question->question_text, 50) }} + +
    {{ $question->type }}
    + {{ Str::limit($question->question_text, 50) }} +
    {{ $question->answers->count() }}
  • diff --git a/resources/views/partials/_sidebar.blade.php b/resources/views/partials/_sidebar.blade.php index f314e9f..ee4cea6 100644 --- a/resources/views/partials/_sidebar.blade.php +++ b/resources/views/partials/_sidebar.blade.php @@ -30,7 +30,7 @@