Пример #1
0
 /**
  * [landscape description]
  * @param  [type] $id [description]
  * @return [type]     [description]
  */
 public function landscape($id)
 {
     $tours = Tour::getTourByLandScape($id);
     foreach ($tours as $key => $value) {
         $tours[$key]->periodNature = HomeController::periodNature($value->period);
     }
     $destinationsData = Destination::all();
     $departuresData = Departure::all();
     $landScapeAbroad = Tour::getLandScapeAbroad();
     $landScapeNotAbroad = Tour::getLandScapeNotAbroad();
     return view('home.searchtour', compact('tours', 'destinationsData', 'departuresData', 'landScapeAbroad', 'landScapeNotAbroad'));
 }