@php $all_notifications = auth()->user()->notifications; $unread_notifications = $all_notifications->where('read_at', null); $total_unread = count($unread_notifications); $notifications = $all_notifications->sortByDesc('created_at')->take(10); @endphp