{{-- New-Unity ERP | app/Modules/Admin/Resources/Views/notifications/index.blade.php | v1.1 | 27/07/2026 --}} {{-- v1.1 — Fix: @push → @section (layout usa @yield para scripts, no @stack). --}} {{-- v1.0 — Centro de notificaciones: filtros por tipo/estado/fecha, paginación, mark-as-read. --}} @extends('layouts.vertical') @section('title', 'Notificaciones') @section('content')

Notificaciones @if($unreadCount > 0) {{ $unreadCount }} sin leer @endif

@if($unreadCount > 0) @endif
{{-- Filtros --}}
Limpiar
{{-- Lista --}}
@if($notifications->isEmpty())

Sin notificaciones con los filtros seleccionados.

@else
@foreach($notifications as $notif) @php $tc = \App\Modules\Admin\Models\Notification::TYPE_COLORS[$notif->type] ?? 'secondary'; $typeLabels = ['mrp' => 'MRP', 'stock' => 'Stock', 'sales' => 'Ventas', 'billing' => 'Facturación', 'system' => 'Sistema', 'crm' => 'CRM']; @endphp @endforeach
Tipo Título / Mensaje Fecha
@if(!$notif->is_read)   @endif {{ $typeLabels[$notif->type] ?? strtoupper($notif->type) }}
{{ $notif->title }}
{{ $notif->message }}
@if($notif->action_url) Ver detalle @endif
{{ $notif->created_at->format('d/m/Y H:i') }}
{{ $notif->created_at->diffForHumans() }}
@if(!$notif->is_read) @else Leída @endif
@if($notifications->hasPages()) @endif @endif
@endsection @section('scripts') @endsection