소스 검색

feat(notifications): add comprehensive user notification system

Add notification email field to users table, create user notification settings and delivery tracking tables, implement notification controllers and services with admin logging capabilities, and integrate real-time notification UI components with unread count display
Alexander Musikhin 1 주 전
부모
커밋
5a7dd0075c
3개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      app/Http/Controllers/ImportController.php
  2. 1 0
      app/Http/Controllers/UserNotificationController.php
  3. 4 1
      resources/views/partials/table.blade.php

+ 2 - 0
app/Http/Controllers/ImportController.php

@@ -25,6 +25,8 @@ class ImportController extends Controller
         'searchFields' => [
             'id',
         ],
+        'ranges' => [],
+        'filters' => [],
     ];
 
     /**

+ 1 - 0
app/Http/Controllers/UserNotificationController.php

@@ -24,6 +24,7 @@ class UserNotificationController extends Controller
         ],
         'ranges' => [],
         'filters' => [],
+        'dates' => [],
     ];
 
     public function index(Request $request)

+ 4 - 1
resources/views/partials/table.blade.php

@@ -38,6 +38,9 @@
                         </div>
                         @if(($enableColumnFilters ?? true) && $headerName !== 'image' && $headerName !== 'actions')
                             @php
+                                $filters = $filters ?? [];
+                                $ranges = $ranges ?? [];
+                                $dates = $dates ?? [];
                                 $type = null;
                                 $data = (array_merge($filters, $ranges, $dates))[$headerName] ?? null;
 
@@ -361,7 +364,7 @@
                     Поиск ведётся по следующим колонкам:
                     <span class="fst-italic">
                         @foreach($searchFields as $searchField)
-                            {{ $header[$searchField] }}
+                            {{ $header[$searchField] ?? $searchField }}
                             @if(!$loop->last)
                                 ,
                             @endif