From c9a440a1d1de17965a5cee22ec89c89c6df12d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Tue, 14 Nov 2023 13:44:04 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D1=80=D0=B0=D0=B7=D0=BE=D0=B2=D0=B0=D0?= =?UTF-8?q?=BD=D0=B8=D0=B5,=20=D1=82=D0=B0=D0=B1=D1=8B,=202-=D1=87=D0=B0=D1=81?= =?UTF-8?q?=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/EducationController.php | 1 - resources/views/admin/education/form.blade.php | 71 +++++++++++--------- .../views/admin/education/program-edit.blade.php | 7 +- resources/views/admin/education/program.blade.php | 5 ++ 4 files changed, 50 insertions(+), 34 deletions(-) diff --git a/app/Http/Controllers/Admin/EducationController.php b/app/Http/Controllers/Admin/EducationController.php index 56db14f..b0d73d3 100644 --- a/app/Http/Controllers/Admin/EducationController.php +++ b/app/Http/Controllers/Admin/EducationController.php @@ -137,5 +137,4 @@ class EducationController extends Controller return redirect()->route('admin.education.edit', ['education' => $education]); } - } diff --git a/resources/views/admin/education/form.blade.php b/resources/views/admin/education/form.blade.php index 3f2a6ac..030e1a4 100644 --- a/resources/views/admin/education/form.blade.php +++ b/resources/views/admin/education/form.blade.php @@ -147,6 +147,7 @@ @endphp @foreach ($program as $pro) + @php $name_tab = $pro->level; @endphp @if ((!empty($level)) && ($level <> $pro->level)) @@ -156,7 +157,14 @@ @if ($bool == true)
- + +
+ + + +
+ +

Специальность:

- {{$pro->name}} + {{ mb_strimwidth($pro->name, 0, 50, "...") }}

@endforeach @@ -201,9 +208,9 @@ @endisset - + - + diff --git a/resources/views/admin/education/program-edit.blade.php b/resources/views/admin/education/program-edit.blade.php index 0376d3c..558f6c2 100644 --- a/resources/views/admin/education/program-edit.blade.php +++ b/resources/views/admin/education/program-edit.blade.php @@ -6,7 +6,7 @@
- +
diff --git a/resources/views/admin/education/program.blade.php b/resources/views/admin/education/program.blade.php index 85547e3..3d7ca1e 100644 --- a/resources/views/admin/education/program.blade.php +++ b/resources/views/admin/education/program.blade.php @@ -37,6 +37,11 @@ + + Назад -- 1.7.10.4
- Описание: {{$pro->text}} + Описание: {{ mb_strimwidth($pro->text, 0, 100, "...")}} Изменить | Удалить -