Ejemplo n.º 1
0
 public function getCatalosoServiciosSearch(Request $request, PublicServiceRepository $gestion, $id_catalogo, $ciudad)
 {
     //
     $busquedaInicial = $gestion->getBusquedaInicialCatalogo($id_catalogo, $ciudad, null, null, 100, 5);
     $busquedaInicialP = null;
     if ($busquedaInicial != null) {
         if (Input::get('page') > $busquedaInicial->currentPage()) {
             $busquedaInicialP = $gestion->getBusquedaInicialCatalogoPadre($id_catalogo, $ciudad, Input::get('page'), $busquedaInicial->currentPage(), 100, 1);
         }
     }
     $view = View::make('public_page.partials.searchcategory', array('catalogo' => $busquedaInicial, 'catalogo2' => $busquedaInicialP));
     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']);
     }
 }