Ejemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $promotions = Promo::all();
     $etu = Etudiant::find($id);
     return View('app/create_etudiant', ['stu' => $etu, 'promotions' => $promotions]);
 }
Ejemplo n.º 2
0
 public function showetudiants($id)
 {
     $students = Promo::liste_etudiants($id);
     $promotions = Promo::all();
     return View('app/gestion_etudiants', ['students' => $students, 'promotions' => $promotions]);
 }
Ejemplo n.º 3
0
 public function gestion_etudiants()
 {
     $students = Etudiant::all();
     $promotions = Promo::all();
     $administrators = Admin::all();
     return View('app/gestion_etudiants', array('students' => $students, 'promotions' => $promotions, 'administrators' => $administrators));
 }