public function getImagesDescription(Request $request, $tipo, $idtipo, ServiciosOperadorRepository $gestion) { $ImgPromociones = $gestion->getGenericImagePromocionesOperador($tipo, $idtipo); $view = View::make('reusable.imageContainerDescriptionAjax')->with('ImgPromociones', $ImgPromociones); if ($request->ajax()) { $sections = $view->rendersections(); return Response::json($sections); //return Response::json($sections['contentPanel']); } else { return $view; } }