Notitfications
@if ($unread_notifications->count() > 0) @foreach ($unread_notifications as $notification)
{{$notification->data['title']}}
{{$notification->data['message']}}

{{$notification->created_at->diffForHumans()}}
@endforeach @endif @if ($read_notifications->count() > 0) @foreach ($read_notifications as $notification) @if (((strtotime("today") - strtotime($notification->read_at))/86400 )<= 2)
{{$notification->data['title']}}
{{$notification->data['message']}}

{{$notification->created_at->diffForHumans()}}
@endif @endforeach @endif