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 Нет