Notifications

@if(session('success'))
{{ session('success') }}
@if(session('updatedNotification'))

Updated Status: {{ session('updatedNotification')->Is_read ? 'Read' : 'Unread' }}

@endif @elseif(session('error'))
{{ session('error') }}
@endif @if($notifications->isEmpty())

No notifications available.

@else @foreach($notifications as $notification)
{{ $notification->Message }}
User: {{ $notification->user->Email ?? 'N/A' }}
Posted on: {{ $notification->Created_at }}
@if(!$notification->Is_read)
@csrf
@endif
@endforeach @endif