{{-- Notification Bell Dropdown --}}
{{-- Dropdown --}}
Notifications View All
@forelse(auth()->user()->notifications()->take(8)->get() as $n) @php $d = $n->data; @endphp
@php $iconColors = [ 'red' => 'text-red-500', 'green' => 'text-green-500', 'blue' => 'text-blue-500', 'yellow' => 'text-yellow-500', 'orange' => 'text-orange-500', ]; @endphp

{{ $d['title'] ?? 'Notification' }}

{{ $d['message'] ?? '' }}

{{ $n->created_at->diffForHumans() }}
@if(!$n->read_at) @endif
@empty

No notifications

@endforelse
@if(auth()->user()->unreadNotifications->count() > 0)
@csrf
@endif