@extends('layouts.master') @section('title') Notifications @endsection @section('content') @component('components.breadcrumb') @slot('li_1') PAL @endslot @slot('title') Notifications @endslot @endcomponent @if(session('success'))
{{ session('success') }}
@endif
All Notifications
@if(auth()->user()->unreadNotifications()->count())
@csrf
@endif
@forelse($notifications as $n) @php $v = ['info'=>'primary','warning'=>'warning','danger'=>'danger'][$n->data['variant'] ?? 'info'] ?? 'primary'; @endphp
{{ $n->data['reference_no'] ?? 'Requisition' }} @unless($n->read_at)New@endunless

{{ $n->data['title'] ?? '' }} — to {{ $n->data['action'] ?? 'review' }}.

{{ $n->data['status_label'] ?? '' }} · {{ $n->created_at->diffForHumans() }}
@empty
No notifications yet.
@endforelse
{{ $notifications->links('pagination::bootstrap-5') }}
@endsection