Commit 1a8d1192ea35c52d10b1e40c3aeb6bbc4bdd1339

Authored by Андрей Ларионов
1 parent 0ea9852237

Коммит в админке - баг просмотра сообщений

Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff

app/Http/Controllers/Admin/MsgAnswersController.php
... ... @@ -16,7 +16,7 @@ class MsgAnswersController extends Controller
16 16 public function messages(Request $request) {
17 17 $find_key = "";
18 18 $find_cat = "";
19   - $Msgs = Message::with('user_from')->with('user_to')->with('response');
  19 + $Msgs = Message::with('user_from')->with('user_to'); //->with('response');
20 20  
21 21 $Msgs = $this->filter($Msgs, $request, $find_key, $find_cat);
22 22  
resources/views/admin/messages.blade.php
... ... @@ -18,7 +18,7 @@
18 18 <th class="px-4 py-3">№</th>
19 19 <th class="px-4 py-3">От юзера</th>
20 20 <th class="px-4 py-3">К юзеру</th>
21   - <th class="px-4 py-3">Отклик</th>
  21 + <th class="px-4 py-3" style="display:none">Отклик</th>
22 22 <th class="px-4 py-3">Читать</th>
23 23 <th class="px-4 py-3">Дата</th>
24 24 </tr>
... ... @@ -43,10 +43,10 @@
43 43 Пользователь удален
44 44 @endif
45 45 </td>
46   - <td class="px-4 py-3">
  46 + <td class="px-4 py-3" style="display:none">
47 47 <div class="flex items-center text-sm">
48 48 <div>
49   - @if ($msg->response->count())
  49 + @if (true) //$msg->response->count())
50 50 Да
51 51 @else
52 52 Нет