Esempio n. 1
0
 /**
  * [tour description]
  * @return [type] [description]
  */
 public function tour()
 {
     $featuretours = Tour::getFeatureTour();
     foreach ($featuretours as $key => $value) {
         $featuretours[$key]->periodNature = HomeController::periodNature($value->period);
     }
     $newtours = Tour::getNewTour();
     foreach ($newtours as $key => $value) {
         $newtours[$key]->periodNature = HomeController::periodNature($value->period);
     }
     $destinations = Destination::all();
     $departures = Departure::all();
     return view('home.tour', compact('featuretours', 'newtours', 'destinations', 'departures'));
 }