public function getPromocionesAtraccion(Request $request, $id_atraccion, PublicServiceRepository $gestion) { // $ImgPromociones = null; $promociones = $gestion->getPromoAtraccion($id_atraccion); if ($promociones != null) { $ImgPromociones = $gestion->getPromotionsImagenAtraccion($promociones); } $view = View::make('public_page.partials.promocionesAtraccion', array('promociones' => $promociones, 'ImgPromociones' => $ImgPromociones)); 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']); } }