public function getGrupos(Request $request)
 {
     if (!$request->ajax()) {
         abort(403);
     }
     $grupo = \App\Grupos::where('idagnoestudio', $request->input('agnoestudio'))->where('idtipogrupo', $request->input('idjornada'))->where('idcarrera', $request->input('idcarrera'));
     return $grupo->get(['id', 'grupo']);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function Index()
 {
     $grupos = Grupos::all();
     $materias = Materias::all();
     $maestros = Maestros::all();
     $alumnos = Alumnos::all();
     $alugrupos = Alugrupos::all();
     return view('mostrarGrupos', ['grupos' => $grupos], ['materias' => $materias], ['maestros' => $maestros], ['alumnos' => $alumnos], ['Alugrupos' => $alugrupos]);
 }
示例#3
0
 public function edit($entity)
 {
     parent::edit($entity);
     $this->edit = \DataEdit::source(new \App\Pessoas());
     $this->edit->label('Mailling');
     $this->edit->add('nome', 'Nome', 'text');
     $this->edit->add('sexo', 'Sexo', 'text');
     $this->edit->add('nascimento', 'Nascimento', 'text');
     $this->edit->add('responsavel', 'Responsável', 'text');
     $this->edit->add('email', 'Email', 'text');
     $this->edit->add('tel-fixo', 'Telefone Fixo', 'text');
     $this->edit->add('tel-celular', 'Telefone Celular', 'text');
     $this->edit->add('rua', 'Logradouro', 'text');
     $this->edit->add('numero', 'Numero', 'text');
     $this->edit->add('complemento', 'Complemento', 'text');
     $this->edit->add('bairro', 'bairro', 'text');
     $this->edit->add('cidade', 'cidade', 'text');
     $this->edit->add('estado', 'estado', 'text');
     $this->edit->add('id_grupo', 'Grupo', 'select')->options(\App\Grupos::lists("nome", "id")->all());
     $this->edit->add('id_programa', 'Programa', 'select')->options(\App\Programas::lists("nome", "id")->all());
     return $this->returnEditView();
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     Grupos::destroy($id);
     return \Redirect::route('grupos.index');
 }