22 lines
769 B
PHP
22 lines
769 B
PHP
<?php
|
|
namespace Incoviba\Controller\Ventas;
|
|
|
|
use Psr\Http\Message\ResponseInterface;
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
use Incoviba\Common\Alias\View;
|
|
use Incoviba\Common\Ideal\Controller;
|
|
use Incoviba\Repository;
|
|
use Incoviba\Service;
|
|
|
|
class Creditos extends Controller
|
|
{
|
|
public function show(ServerRequestInterface $request, ResponseInterface $response, View $view,
|
|
Service\Venta $ventaService, Repository\Banco $bancoRepository,
|
|
int $venta_id): ResponseInterface
|
|
{
|
|
$venta = $ventaService->getById($venta_id);
|
|
$bancos = $bancoRepository->fetchAll('nombre');
|
|
return $view->render($response, 'ventas.creditos', compact('venta', 'bancos'));
|
|
}
|
|
}
|