瀏覽代碼

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

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

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

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

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

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

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