Commit 9daa8f714a9640e7e86b82c9f87bd9547173422e

Authored by Andres Sucerquia Osorio
1 parent c0771624

id

app/controllers/RegistrarAsistencia.php
... ... @@ -62,10 +62,10 @@ class RegistrarAsistencia extends \BaseController {
62 62 ->with('confirmados',$total_confirmados);
63 63 }
64 64  
65   - public function registrados(){
  65 + public function registrados($id){
66 66 //Consulto todos los posibles asistentes
67 67 $asistentes = GraduacionUsoTic::where('asistio','=',true)
68   - ->orderBy('diplomas','asc')
  68 + ->where('diplomas',$id)
69 69 ->orderBy('cursos','asc')
70 70 ->orderBy('updated_at','asc')
71 71 ->get();
... ...
app/routes.php
... ... @@ -11,4 +11,4 @@
11 11 |
12 12 */
13 13 Route::any('/',array('uses' => 'RegistrarAsistencia@index', 'as' => 'index' ));
14   -Route::get('/registrados',array('uses' => 'RegistrarAsistencia@registrados', 'as' => 'registrados' ));
15 14 \ No newline at end of file
  15 +Route::get('/registrados/{id}',array('uses' => 'RegistrarAsistencia@registrados', 'as' => 'registrados' ));
16 16 \ No newline at end of file
... ...