From 1c55e51e33edfc41bda628303bf1cb5d43351a1e Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Fri, 12 Jul 2024 12:12:50 +0200 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D1=8B=20=D0=BF=D0=BE=203?= =?UTF-8?q?9=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EducationController.php | 2 ++ resources/views/ajax/education.blade.php | 5 ---- resources/views/education/index.blade.php | 9 ------ resources/views/education/show.blade.php | 39 ++++++++++++++++++++------ 4 files changed, 32 insertions(+), 23 deletions(-) diff --git a/app/Http/Controllers/EducationController.php b/app/Http/Controllers/EducationController.php index 9ed250f..10d4c2d 100644 --- a/app/Http/Controllers/EducationController.php +++ b/app/Http/Controllers/EducationController.php @@ -26,6 +26,8 @@ class EducationController extends Controller case 'default': $educations = $educations->orderBy('id')->orderby('updated_at'); break; default: $educations = $educations->orderBy('id')->orderby('updated_at'); break; } + } else { + $educations->orderBy('name'); } $count_edu = $educations->count(); diff --git a/resources/views/ajax/education.blade.php b/resources/views/ajax/education.blade.php index aa0f3a5..5cbaeb7 100644 --- a/resources/views/ajax/education.blade.php +++ b/resources/views/ajax/education.blade.php @@ -4,11 +4,6 @@
{{ $edu->name }} - - - - -
{{ $edu->name }} diff --git a/resources/views/education/index.blade.php b/resources/views/education/index.blade.php index c0c5067..66ee7dd 100644 --- a/resources/views/education/index.blade.php +++ b/resources/views/education/index.blade.php @@ -2,7 +2,6 @@ @section('scripts')