@php $user = auth()->user(); $query = \App\Models\Notification::where('is_read',0)->where('to',$user->id); $unread_notifications = $query->orderBy('_id','desc')->get()->take(3); $unread_count = $query->count(); @endphp
New message received
You have 10 unread messages--}} {{--{{isset($type[$notification->type]) ? \App\Models\Notification::$type[$notification->type] : ''}}
{{$notification->message}} {{\Carbon\Carbon::parse($notification->created_at)->diffForHumans()}}Server down registered
USA Server is down due to high CPU usage--}} {{--Sales report generated
Last month sales report generatedHigh memory usage
BLR Server using high memory--}} {{--