@php $notifications = $this->getNotifications(); @endphp @if($notifications->isEmpty())

No tienes notificaciones

@else
@foreach($notifications as $notification) @php $isUnread = is_null($notification->read_at); $data = $notification->data; @endphp
$isUnread, 'bg-white border-gray-200 dark:bg-gray-900 dark:border-gray-700' => !$isUnread, ])> {{-- Icono --}}
$isUnread, 'bg-gray-100 dark:bg-gray-800' => !$isUnread, ])> $isUnread, 'text-gray-400 dark:text-gray-500' => !$isUnread, ])/>
{{-- Contenido --}}

$isUnread, 'text-gray-600 dark:text-gray-400' => !$isUnread, ])> Nuevo documento: {{ $data['document_name'] ?? '—' }}

Carpeta: {{ $data['folder_name'] ?? '—' }}  ·  Subido por: {{ $data['uploaded_by'] ?? '—' }}

{{ $notification->created_at->diffForHumans() }} @if($isUnread) @endif
@if($isUnread) Nueva @endif
@endforeach
@endif