diff --git a/app/resources/routes/api/proyectos.php b/app/resources/routes/api/proyectos.php index 3d8cca7..0dd2495 100644 --- a/app/resources/routes/api/proyectos.php +++ b/app/resources/routes/api/proyectos.php @@ -17,4 +17,7 @@ $app->group('/proyecto/{proyecto_id}', function($app) { $app->get('/disponibles[/]', [Proyectos::class, 'disponibles']); $app->get('[/]', [Proyectos::class, 'unidades']); }); + $app->group('/terreno', function($app) { + $app->post('/edit[/]', [Proyectos::class, 'terreno']); + }); }); diff --git a/app/resources/routes/api/ventas/unidades.php b/app/resources/routes/api/ventas/unidades.php index 01630a7..693f963 100644 --- a/app/resources/routes/api/ventas/unidades.php +++ b/app/resources/routes/api/ventas/unidades.php @@ -4,3 +4,8 @@ use Incoviba\Controller\API\Ventas\Unidades; $app->group('/unidades', function($app) { $app->post('/disponibles', [Unidades::class, 'disponibles']); }); +$app->group('/unidad/{unidad_id}', function($app) { + $app->group('/prorrateo', function($app) { + $app->post('[/]', [Unidades::class, 'prorrateo']); + }); +}); diff --git a/app/resources/views/proyectos/show.blade.php b/app/resources/views/proyectos/show.blade.php index 835b783..568c0ca 100644 --- a/app/resources/views/proyectos/show.blade.php +++ b/app/resources/views/proyectos/show.blade.php @@ -42,6 +42,26 @@ +
+ {{$format->number($proyecto->terreno->superficie, 2)}}m² + | ++ {{$format->pesos($proyecto->terreno->valor)}} ({{$proyecto->terreno->fecha?->format('d-m-Y')}}) + | ++ + + + | +