Ejemplo n.º 1
0
 public function getCatalosoServicios(Request $request, PublicServiceRepository $gestion, $id_atraccion, $id_catalogo)
 {
     //
     $atraccion = $gestion->getAtraccionDetails($id_atraccion);
     $catalogo1 = $gestion->getCatalogoDetails($id_atraccion, $id_catalogo);
     $catalogo = $gestion->getDetailsServiciosAtraccion($catalogo1, null, null, 5);
     if ($atraccion->id_provincia != 0) {
         if (Input::get('page') > $catalogo->currentPage()) {
             $catalogo2 = $gestion->getCatalogoDetailsProvincia($atraccion, $id_catalogo, $catalogo1);
             $catalogo = $gestion->getDetailsServiciosAtraccion($catalogo2, Input::get('page'), $catalogo->currentPage(), 1);
         }
     }
     $view = View::make('public_page.partials.listServicesCategoria', array('catalogo' => $catalogo));
     if ($request->ajax()) {
         //return Response::json(View::make('public_page.partials.AllTopPlaces', array('topPlacesEcuador' => $topPlacesEcuador))->rendersections());
         $sections = $view->rendersections();
         return Response::json($sections);
         //return  Response::json($sections['contentPanel']);
     }
 }