From 909bb2b8798afa1fe414fc56c8159d4648ec578f Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 22 Jul 2025 18:21:05 -0400 Subject: [PATCH] Mostrar reservas --- app/resources/routes/ventas/cierres.php | 3 +- .../views/ventas/reservations.blade.php | 287 ++++++++++++++++++ app/src/Controller/Ventas/Reservations.php | 22 ++ 3 files changed, 311 insertions(+), 1 deletion(-) create mode 100644 app/resources/views/ventas/reservations.blade.php create mode 100644 app/src/Controller/Ventas/Reservations.php diff --git a/app/resources/routes/ventas/cierres.php b/app/resources/routes/ventas/cierres.php index 62e3084..bf57def 100644 --- a/app/resources/routes/ventas/cierres.php +++ b/app/resources/routes/ventas/cierres.php @@ -1,5 +1,6 @@ group('/cierres', function($app) { $app->get('[/]', Cierres::class); diff --git a/app/resources/views/ventas/reservations.blade.php b/app/resources/views/ventas/reservations.blade.php new file mode 100644 index 0000000..12801f9 --- /dev/null +++ b/app/resources/views/ventas/reservations.blade.php @@ -0,0 +1,287 @@ +@extends('layout.base') + +@section('page_title') + Cierres -Reservas +@endsection + +@section('page_content') +
+

Cierres - Reservas

+ +
+
Proyectos
+ @if (count($projects) == 0) +
+ No hay proyectos en venta. +
+ @else + + @endif +
+

+
+
+ + +
+
+ + + + + + + + + + + + + +
UnidadesClienteFechaOferta¿Valida?Operador + +
+
+@endsection + +@push('page_styles') + +@endpush + +@push('page_scripts') + +@endpush diff --git a/app/src/Controller/Ventas/Reservations.php b/app/src/Controller/Ventas/Reservations.php new file mode 100644 index 0000000..d8bd8df --- /dev/null +++ b/app/src/Controller/Ventas/Reservations.php @@ -0,0 +1,22 @@ +getVendibles('descripcion'); + } catch (EmptyResult) {} + return $view->render($response, 'ventas.reservations', compact('projects')); + } +}