/** * 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]); }
public function showetudiants($id) { $students = Promo::liste_etudiants($id); $promotions = Promo::all(); return View('app/gestion_etudiants', ['students' => $students, 'promotions' => $promotions]); }
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)); }