PAL Centre
@auth @php $unread = auth()->user()->unreadNotifications()->latest()->limit(6)->get(); $unreadCount = auth()->user()->unreadNotifications()->count(); @endphp
Notifications
@if($unreadCount){{ $unreadCount }} new@endif
@forelse($unread as $n) @php $v = ['info'=>'primary','warning'=>'warning','danger'=>'danger'][$n->data['variant'] ?? 'info'] ?? 'primary'; @endphp
{{ $n->data['reference_no'] ?? 'Requisition' }}

To {{ $n->data['action'] ?? 'review' }}.

{{ $n->created_at->diffForHumans() }}
@empty
You're all caught up.
@endforelse
View all @if($unreadCount)
@csrf
@endif
@endauth
Welcome {{ Auth::user()->name }}!
Requisitions
Logout
@csrf