Files
oficial/app/resources/routes/04_ventas.php

53 lines
2.2 KiB
PHP
Raw Normal View History

<?php
2023-07-28 16:22:20 -04:00
use Incoviba\Controller\Ventas;
$app->group('/ventas', function($app) {
$files = new FilesystemIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'ventas']));
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
2023-10-19 18:20:37 -03:00
$app->get('/add[/]', [Ventas::class, 'add']);
2023-07-28 16:22:20 -04:00
$app->get('[/]', Ventas::class);
2023-11-25 00:55:31 -03:00
})->add($app->getContainer()->get(Incoviba\Middleware\Authentication::class));
$app->group('/venta/{proyecto_nombre:[A-za-zÑñ\+\ %0-9]+}/{unidad_descripcion:[0-9]+}', function($app) {
$app->get('[/]', [Ventas::class, 'showUnidad']);
2023-11-25 00:55:31 -03:00
})->add($app->getContainer()->get(Incoviba\Middleware\Authentication::class));
$app->group('/venta/{venta_id:[0-9]+}', function($app) {
$app->group('/propietario', function($app) {
$app->get('[/]', [Ventas::class, 'propietario']);
});
$app->group('/propiedad', function($app) {
$app->get('[/]', [Ventas::class, 'propiedad']);
});
2023-09-13 18:51:46 -03:00
$app->group('/pie', function($app) {
$app->get('/add[/]', [Ventas\Pies::class, 'add']);
2023-09-13 18:51:46 -03:00
$app->group('/cuotas', function($app) {
$app->get('[/]', [Ventas::class, 'cuotas']);
});
2023-11-29 22:21:46 -03:00
$app->get('[/]', [Ventas::class, 'pie']);
2023-09-13 18:51:46 -03:00
});
2024-11-18 23:25:20 -03:00
$app->group('/bono_pie', function($app) {
$app->get('/edit[/]', [Ventas\Bonos::class, 'edit']);
2024-11-18 23:25:20 -03:00
$app->get('/add[/]', [Ventas\Bonos::class, 'add']);
$app->get('[/]', [Ventas\Bonos::class, 'edit']);
2024-11-18 23:25:20 -03:00
});
$app->group('/escritura', function($app) {
2024-11-28 14:06:58 -03:00
$app->group('/cuotas', function($app) {
$app->get('[/]', Ventas\Abono\Cuotas::class);
});
$app->get('/add[/]', [Ventas\Escrituras::class, 'add']);
2024-11-28 17:12:35 -03:00
$app->get('[/]', [Ventas\Escrituras::class, 'show']);
});
2024-02-15 18:57:56 -03:00
$app->group('/credito', function($app) {
$app->get('[/]', [Ventas\Creditos::class, 'show']);
});
2023-12-20 08:44:49 -03:00
$app->get('/escriturar[/]', [Ventas::class, 'escriturar']);
2023-12-21 18:45:47 -03:00
$app->get('/desistir[/]', [Ventas::class, 'desistir']);
2023-12-21 21:06:38 -03:00
$app->get('/desistida[/]', [Ventas::class, 'desistida']);
$app->get('/edit[/]', [Ventas::class, 'edit']);
$app->get('[/]', [Ventas::class, 'show']);
2023-11-25 00:55:31 -03:00
})->add($app->getContainer()->get(Incoviba\Middleware\Authentication::class));