/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $egreso = Egreso::findOrFail($id); $cuentas = Cuenta::whereIn('tipo', ['Ejecutora'])->lists('cuenta', 'id')->all(); $cuentas_bancarias = CuentaBancaria::all()->lists('cuenta_tipo_urg', 'id'); $benefs = Benef::all()->sortBy('benef')->lists('benef', 'id'); $fecha = null; $cheque = null; return view('egresos.formEgreso', compact('egreso', 'fecha', 'cheque', 'cuentas', 'cuentas_bancarias', 'benefs')); }