/** * Affiche le formulaire de creation d'une nouvelle offre de stage * * @return Response */ public function create() { $array = parent::create(); $array['etudiant'] = Auth::user()->user->select('promotion_id', 'specialite_id')->first(); $array['entreprises'] = Entreprise::all(); return View::make('etudiant.creation_offre_stage')->with($array); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $array['offre'] = OffreStage::where('offre_stages.id', $id)->with('competences')->first(); if (isset($array['offre']->date_debut)) { $array['offre']->date_debut = date('Y-m', strtotime($array['offre']->date_debut)); } $array['competences']['mine'] = $array['offre']->competences->lists('id'); $array['promotions'] = Promotion::all(); $array['competences']['all'] = Competence::all(); $array['entreprises'] = Entreprise::all(); return $array; }
/** * Affiche le formulaire de creation d'une nouvelle offre de stage * * @return Response */ public function create() { $array = parent::create(); $array['entreprises'] = Entreprise::all(); return View::make('moderateur.creation_offre_stage')->with($array); }