/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $pago = pago::findOrfail($id); $data1 = User::lists('name', 'id'); $data2 = DB::table('tipopago')->select('id')->orderBy('id', 'desc')->first()->id; $selected = array(); return view('admin.pago.edit', compact('pago', 'data1', 'data2', 'selected')); }