/** * Display a listing of the resource. * * @return Response */ public function index() { $notifications = Notification::latest()->paginate(20); $no = $notifications->firstItem(); return view('notifications.index', compact('notifications', 'no')); }