public function ingresarNoticia($centro, $area) { $response = 0; $response = Centro::buscar_centro($centro); if (count($response) != 0) { $response = 0; $response = AreaGestion::buscar_area_gestion($area); if (count($response) != 0 and $centro == $response->centro_area_gestion) { $areas = AreaGestion::where('centro_area_gestion', $centro)->lists('nombre_area_gestion', 'id_area_gestion'); if (count($areas) != 0) { return View::make('pruebas.noticia')->with('noticias', Noticia::listar_noticias(3, $area))->with('centro', $centro)->with('area', $area); } else { return View::make('pruebas.noticia')->with('error', 'No existen áreas de gestión'); } } else { return View::make('pruebas.noticia')->with('error', 'No existe el área de gestión'); } } else { return View::make('pruebas.noticia')->with('error', 'No existe un centro de investigacion para ingresar proyectos'); } }