diff --git a/resources/views/admin/questions/edit.blade.php b/resources/views/admin/questions/edit.blade.php index 40e3e21..b9fded7 100644 --- a/resources/views/admin/questions/edit.blade.php +++ b/resources/views/admin/questions/edit.blade.php @@ -9,7 +9,7 @@

Редактировать вопрос

Назад -
+ @csrf @method('PUT')
@@ -19,30 +19,36 @@
- +
- + Отображается после ответа
+
@foreach($question->answers as $answer)
- + + + @if($answer->image) + Ответ + @endif - +
@endforeach @@ -50,7 +56,8 @@
-
@@ -93,29 +115,78 @@ + + @endsection diff --git a/resources/views/admin/questions/index.blade.php b/resources/views/admin/questions/index.blade.php index b8f0d34..d31c560 100644 --- a/resources/views/admin/questions/index.blade.php +++ b/resources/views/admin/questions/index.blade.php @@ -32,7 +32,7 @@ @elseif($question->type === 'ordering') @endif - {{ Str::limit($question->question_text, 100) }} + {{ strip_tags($question->question_text) }}
{{ $question->answers->count() }} ответов@if($question->matchingPairs->count() > 0), {{ $question->matchingPairs->count() }} пар@endif @if($question->is_required) Обязательный@endif diff --git a/resources/views/admin/tests/show.blade.php b/resources/views/admin/tests/show.blade.php index 6645575..e1142be 100644 --- a/resources/views/admin/tests/show.blade.php +++ b/resources/views/admin/tests/show.blade.php @@ -58,7 +58,7 @@ {{ $loop->iteration }} - {{ Str::limit($question->question_text, 80) }} + {{ Str::limit(strip_tags($question->question_text), 80) }} @if($question->is_required)@endif