@if (Auth::user()->unreadNotifications->isNotEmpty()) @foreach (Auth::user()->unreadNotifications as $notification) @if ($notification->type === 'App\Notifications\TaskNotification') {{ $notification->data['titulo'] ?? 'Título no disponible' }}
{{ $notification->data['mensaje'] ?? 'Mensaje no disponible' }}
@elseif ($notification->type === 'App\Notifications\TikectNotification' || $notification->type === 'App\Notifications\NuevoTikectNotification') {{ $notification->data['titulo'] ?? 'Título no disponible' }}
{{ $notification->data['mensaje'] ?? 'Mensaje no disponible' }}
@endif @endforeach
Marcar todo como leído @else No hay notificaciones por leer @endif