Преглед изворни кода

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' => [
             '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