{{-- ======================================== NOTIFICHE HEADER ======================================== Componente notifiche con badge contatore, dropdown e gestione real-time. Props: - $maxVisible (int): Max notifiche visibili nel dropdown - $showBadge (bool): Mostra badge contatore - $realTime (bool): Abilita aggiornamenti real-time Autore: NetGesCon Development Team Data: 2024 ======================================== --}} @props([ 'maxVisible' => 10, 'showBadge' => true, 'realTime' => true ]) @php // Recupera notifiche utente (sostituire con logica reale) $notifications = collect([ (object)[ 'id' => 1, 'type' => 'ticket', 'title' => 'Nuovo ticket aperto', 'message' => 'Ticket #123 - Problema ascensore', 'icon' => 'fas fa-ticket-alt', 'color' => 'warning', 'time' => '2 min fa', 'read' => false, 'url' => '#' ], (object)[ 'id' => 2, 'type' => 'system', 'title' => 'Backup completato', 'message' => 'Backup automatico database eseguito con successo', 'icon' => 'fas fa-database', 'color' => 'success', 'time' => '1 ora fa', 'read' => false, 'url' => '#' ] ]); $unreadCount = $notifications->where('read', false)->count(); @endphp