id()) ->latest() ->paginate(15); return view('history.index', compact('diagnoses')); } }