Example #1
0
 public function showVagas()
 {
     $vagas = Vaga::all();
     $vaga = Vaga::all()->isEmpty();
     $nivel = Nivel::lists('nome', 'id');
     return view("gestorEmpregador")->with(array('vagas' => $vagas, 'nivel' => $nivel, 'vaga' => $vaga));
 }
Example #2
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     if (Auth::user()->estudante()->first()) {
         $estudante = Auth::user()->estudante()->first();
         $d = true;
         $vista = 'estudante';
         return view('gestorCurriculum', ['d' => $d, 'est' => $estudante, 'vista' => $vista]);
     }
     $idiomas = lingua::lists('idioma', 'id');
     $_SESSION['estudante'] = true;
     $vagas = Vaga::all();
     $cursos = \App\curso::all();
     $nivel = Nivel::lists('nome', 'id');
     $vaga = Vaga::all()->isEmpty();
     $fillable = Auth::user()->get();
     $fillable2 = Auth::user()->tipo;
     //$emp=Auth::user()->empregador()->first;
     $vista = 'estudanteGravar';
     if ($fillable2 == 'estudante') {
         return view('gestorCurriculum', ['vista' => $vista]);
     } elseif ($fillable2 == 'empregador') {
         $vista = 'empregador';
         $vagas = Vaga::all();
         return view('gestorEmpregador', ['vagas' => $vagas, 'idiomas' => $idiomas, 'nivel' => $nivel, 'cursos' => $cursos, 'vista' => $vista]);
     } else {
         $idiomas = Idioma::lists('lingua', 'id');
         $vaga = Vaga::all();
         return view('gestorNucleo', ["vaga" => $vaga, "idiomas" => $idiomas]);
     }
     /*  if($fillable.isEmpty()){
                   return view('gestorEmpregador',['vaga'=>$vaga]);
     
               }else
                   return view('gestorCurriculum');*/
     //return view('home');
 }
Example #3
0
 public function showCurso()
 {
     $nivel = Nivel::lists('nome', 'id');
     return view('curso')->with('nivel', $nivel);
 }