public function misdiagnosticos() { $id = Auth::user()->id; $misDiagnosticos = Diagnostico::where('id_especialista', $id)->orderBy('id', 'asc')->paginate(8); return view('admin.diagnostico.misDiagnosticos', compact('misDiagnosticos', 'especialistas')); }
public function verHistorial($id) { $paciente = User::findOrFail($id); $diagnosticos = Diagnostico::where('id_usuario', $id)->paginate(); return view('admin.historiales.index', compact('paciente', 'diagnosticos')); }