@forelse($notifications as $notification)
@php
$colorClasses = [
'blue' => 'bg-blue-100 dark:bg-blue-900 text-blue-600 dark:text-blue-400',
'green' => 'bg-green-100 dark:bg-green-900 text-green-600 dark:text-green-400',
'red' => 'bg-red-100 dark:bg-red-900 text-red-600 dark:text-red-400',
'yellow' => 'bg-yellow-100 dark:bg-yellow-900 text-yellow-600 dark:text-yellow-400',
'orange' => 'bg-orange-100 dark:bg-orange-900 text-orange-600 dark:text-orange-400',
'purple' => 'bg-purple-100 dark:bg-purple-900 text-purple-600 dark:text-purple-400',
'gray' => 'bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-400',
];
@endphp
{{ $notification->title }}
@if($notification->message)
{{ $notification->message }}
@endif
{{ $notification->created_at->diffForHumans() }}
@if($notification->isUnread())
@endif
@if($notification->link)
View
@endif
@empty
No notifications
You're all caught up!
@endforelse