getAll('description'); return $view->render($response, 'ventas.promotions', ['promotions' => $promotions]); } public function show(ServerRequestInterface $request, ResponseInterface $response, View $view, Service\Venta\Promotion $promotionService, Service\Proyecto $proyectoService, Service\Proyecto\Broker $brokerService, int $promotion_id): ResponseInterface { $promotion = null; try { $promotion = $promotionService->getById($promotion_id); } catch (ServiceAction\Read) {} $projects = $proyectoService->getVendibles('descripcion'); $brokers = $brokerService->getAll('name'); return $view->render($response, 'ventas.promotions.show', ['promotion' => $promotion, 'projects' => $projects, 'brokers' => $brokers]); } }