public function submit_enable_reporte_paac() { if (Auth::check()) { $data["inside_url"] = Config::get('app.inside_url'); $data["user"] = Session::get('user'); // Verifico si el usuario es un Webmaster if ($data["user"]->idrol == 1 || $data["user"]->idrol == 2 || $data["user"]->idrol == 3 || $data["user"]->idrol == 4) { $idreporte_PAAC = Input::get('idreporte_PAAC'); $url = "reporte_paac/edit_reporte_paac/" . $idreporte_PAAC; $reporte_paac = ReportePAAC::withTrashed()->find($idreporte_PAAC); $reporte_paac->restore(); Session::flash('message', 'Se habilitó correctamente el Reporte.'); return Redirect::to($url); } else { return View::make('error/error', $data); } } else { return View::make('error/error', $data); } }