/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $pagos = Pagos::findOrFail($id); $pacientes = User::where('type', '!=', 'Especialista')->orderBy('first_name', 'asc')->get(['first_name', 'last_name', 'id']); return view('admin.pagos.edit', compact('pagos', 'pacientes')); }