From 1a8d1192ea35c52d10b1e40c3aeb6bbc4bdd1339 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 May 2024 21:32:18 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D0=B2=20=D0?= =?UTF-8?q?=B0=D0=B4=D0=BC=D0=B8=D0=BD=D0=BA=D0=B5=20-=20=D0=B1=D0=B0=D0=B3=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=81=D0=BC=D0=BE=D1=82=D1=80=D0=B0=20=D1=81=D0?= =?UTF-8?q?=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/MsgAnswersController.php | 2 +- resources/views/admin/messages.blade.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Admin/MsgAnswersController.php b/app/Http/Controllers/Admin/MsgAnswersController.php index 46f5c04..a1c4597 100644 --- a/app/Http/Controllers/Admin/MsgAnswersController.php +++ b/app/Http/Controllers/Admin/MsgAnswersController.php @@ -16,7 +16,7 @@ class MsgAnswersController extends Controller public function messages(Request $request) { $find_key = ""; $find_cat = ""; - $Msgs = Message::with('user_from')->with('user_to')->with('response'); + $Msgs = Message::with('user_from')->with('user_to'); //->with('response'); $Msgs = $this->filter($Msgs, $request, $find_key, $find_cat); diff --git a/resources/views/admin/messages.blade.php b/resources/views/admin/messages.blade.php index 4a9a1ca..8cb9d46 100644 --- a/resources/views/admin/messages.blade.php +++ b/resources/views/admin/messages.blade.php @@ -18,7 +18,7 @@ № От юзера К юзеру - Отклик + Отклик Читать Дата @@ -43,10 +43,10 @@ Пользователь удален @endif - +
- @if ($msg->response->count()) + @if (true) //$msg->response->count()) Да @else Нет -- 1.7.10.4