public function getEventosAtraccion(Request $request, $id_atraccion, PublicServiceRepository $gestion) { // $Imgeventos = null; $eventos = $gestion->getEventosAtraccion($id_atraccion); if ($eventos != null) { $Imgeventos = $gestion->getEventosImagenAtraccion($eventos); } $view = View::make('public_page.partials.eventosAtraccion', array('eventos' => $eventos, 'Imgeventos' => $Imgeventos)); 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']); } }