@extends('frontend.layouts.app') @section('title', 'Digital Blood Hub - Notification') @section('content')

Notifications

@foreach(auth()->user()->unreadnotifications as $notification)
user
{{ isset($notification->data['name']) ? $notification->data['name'] : 'No name available' }}

{{ isset($notification->data['message']) ? $notification->data['message'] : 'No message available' }}

{{ $notification->created_at->diffForHumans() }}

@endforeach @foreach(auth()->user()->readnotifications as $notification)
user
{{ isset($notification->data['name']) ? $notification->data['name'] : 'No name available' }}

{{ isset($notification->data['message']) ? $notification->data['message'] : 'No message available' }}

{{ $notification->created_at->diffForHumans() }}

@endforeach
@endsection @section('customJs') @endsection