public function getBuscador() { $provincias = new Provincia(); $areas = new AreasEmpleo(); $experiencia[0] = Lang::get("forms.sinExperiencia"); for ($i = 1; $i < 10; $i++) { $experiencia[$i] = $i . " " . Lang::choice("forms.anyo", $i); } $experiencia[10] = ">= 10 " . Lang::choice("forms.anyo", 10); $jornadas = new JornadasLaborales(); $contratos = new ContratosLaborales(); return View::make('gestor.buscador', array('contratos' => $contratos->vector(), 'jornadas' => $jornadas->vector(), 'experiencia' => $experiencia, 'areas' => $areas->vector(), 'provincias' => $provincias->arraySelect())); }
public static function vector() { $vectores = ContratosLaborales::all(); $vectorArray = array(); foreach ($vectores as $vector) { $vectorArray[$vector->id] = $vector->nombre; } return $vectorArray; }
public function getNueva() { $jornadas = new JornadasLaborales(); return View::make('oferta/nuevo', array('titulaciones' => Titulacion::arraySelect(), 'estudios' => Estudio::arraySelect(), 'provincias' => Provincia::arraySelect(), 'areas' => AreasEmpleo::vector(), 'salarios' => Oferta::salariosSelect(), 'contratos' => ContratosLaborales::vector(), 'jornadas' => JornadasLaborales::vector(), 'experiencia' => Oferta::experienciaSelect())); }