/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $reportesislr = Reporteislr::find($id); if (is_null($reportesislr)) { return Redirect::route('islr-reportes.index')->with('global', '<i class="fa fa-exclamation fa-fw x3"></i> Pagina no encontrada'); } $agente = Agente::find(1); $empleados = Empleado::orderBy('nombre', 'ASC')->lists('nombre', 'id'); return View::make('reportesislr.edit', array('agente' => $agente))->with('reportesislr', $reportesislr)->with('empleados', $empleados); }