/**
  * Afficher une offre de stage
  * @param $id
  */
 public function show($id)
 {
     $array['offre'] = OffreStage::where('offre_stages.id', $id)->with('entreprise')->first();
     if ($array['offre']->promotion_id != null) {
         $array['offre']['promotion'] = Promotion::find($array['offre']->promotion_id);
     }
     if ($array['offre']->specialite_id != null) {
         $array['offre']['specialite'] = Specialite::find($array['offre']->specialite_id);
     }
     $array['feedbacks'] = $this->getFeedbacks($id);
     //dd($array['feedbacks']);
     //les candidatures sur l'offre de stage
     $array['candidatures'] = $this->getCandidatures($id);
     return $array;
 }