From 3057579f9ead65fcbb87474280c1b77602b05860 Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Mon, 15 Apr 2024 16:28:08 +0300 Subject: [PATCH 1/2] adding news section --- app/Http/Controllers/admin/PageController.php | 7 + .../new-design/bakalavr-special.blade.php | 257 ++++-------------- 2 files changed, 61 insertions(+), 203 deletions(-) diff --git a/app/Http/Controllers/admin/PageController.php b/app/Http/Controllers/admin/PageController.php index 7e73285..8441b28 100644 --- a/app/Http/Controllers/admin/PageController.php +++ b/app/Http/Controllers/admin/PageController.php @@ -8,6 +8,7 @@ use App\Models\Admission; use App\Models\Direction; use App\Models\EntranceExamination; use App\Models\Faculty; +use App\Models\News; use App\Models\Subject; use Illuminate\Contracts\View\Factory; use Illuminate\Contracts\View\View; @@ -23,6 +24,7 @@ class PageController extends Controller public function bakalavr() { + $news = News::all(); $admissions = Admission::all(); $faculties = Faculty::all(); $subjects = EntranceExamination::all() @@ -175,10 +177,12 @@ class PageController extends Controller 'directionsWithInstitution', 'groupedDirections', 'admissions', + 'news', )); } public function inostran() { + $news = News::all(); $admissions = Admission::all(); $faculties = Faculty::all(); $subjects = EntranceExamination::all() @@ -331,11 +335,13 @@ class PageController extends Controller 'directionsWithInstitution', 'groupedDirections', 'admissions', + 'news', )); } public function magistr() { + $news = News::all(); $admissions = Admission::all(); $faculties = Faculty::all(); $subjects = EntranceExamination::all() @@ -488,6 +494,7 @@ class PageController extends Controller 'directionsWithInstitution', 'groupedDirections', 'admissions', + 'news', )); } diff --git a/resources/views/new-design/bakalavr-special.blade.php b/resources/views/new-design/bakalavr-special.blade.php index 8c687a1..eb42f53 100644 --- a/resources/views/new-design/bakalavr-special.blade.php +++ b/resources/views/new-design/bakalavr-special.blade.php @@ -554,212 +554,61 @@ - {{--
+ {{-- Начало новостей --}}
-