Преглед на файлове

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