From 8e71d994af8fcb2a13d89c41fd3396dfd36b0757 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: Mon, 11 Mar 2024 17:15:27 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0?= =?UTF-8?q?=B8=D0=B5=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD=D0=BE=D0=B9=20=D1=81=D1?= =?UTF-8?q?=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/index.blade.php | 10 ++++++++-- routes/web.php | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index acbc4b2..2c02550 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -150,6 +150,8 @@ + +@if ($news->count())
@@ -167,9 +169,10 @@
+
- @if ($news->count()) + @foreach ($news as $new)
@@ -183,13 +186,16 @@
@endforeach - @endif +
Все новости +
+@endif +
diff --git a/routes/web.php b/routes/web.php index 2528e73..9ead850 100644 --- a/routes/web.php +++ b/routes/web.php @@ -46,6 +46,7 @@ Route::get('/', function () { return view('welcome'); })->name('index'); */ + Route::get('/', [MainController::class, 'index'])->name('index'); //Роуты авторизации, регистрации, восстановления, аутентификации -- 1.7.10.4