Exemplo n.º 1
0
 public function getTopPlaces(Request $request, PublicServiceRepository $gestion)
 {
     $topPlacesCosta = $gestion->getTopPlaces(100, 1);
     $topPlacesSierra = $gestion->getTopPlaces(100, 2);
     $topPlacesOriente = $gestion->getTopPlaces(100, 3);
     $topPlacesGalapagos = $gestion->getTopPlaces(100, 4);
     $view = View::make('public_page.front.AllTopPlaces', array('topPlacesCosta' => $topPlacesCosta, 'topPlacesSierra' => $topPlacesSierra, 'topPlacesOriente' => $topPlacesOriente, 'topPlacesGalapagos' => $topPlacesGalapagos));
     if ($request->ajax()) {
         $sections = $view->rendersections();
         return Response::json($sections);
     }
 }