diff --git a/bootstrap/app.php b/bootstrap/app.php index cfbac81..c9c9343 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -37,7 +37,7 @@ foreach ($files as $file) { $container = $builder->build(); $container->set('env', $__environment); $app = Bridge::create($container); -$app->setBasePath($container->get('base_url')); +$app->setBasePath($container->get('urls.base')); foreach ($folders as $folder) { $filename = implode(DIRECTORY_SEPARATOR, [ diff --git a/common/Controller/Web/Base.php b/common/Controller/Web/Base.php index 8028697..6f84b08 100644 --- a/common/Controller/Web/Base.php +++ b/common/Controller/Web/Base.php @@ -37,6 +37,6 @@ class Base { ]); $resumen = json_decode(trim(file_get_contents($filename))); $indicadores = ['uf' => 'UF', 'euro' => 'Euro', 'imacec' => 'IMACEC', 'dolar' => 'USD', 'ipc' => 'IPC', 'utm' => 'UTM', 'bitcoin' => 'BitCoin', 'libra_cobre' => 'Lb. Cu']; - return $view->render($response, 'home', compact('aviso', 'avisos', 'destacados', 'segmentos', 'resumen', 'indicadores')); + return $view->render($response, 'home', compact('avisos', 'destacados', 'segmentos', 'resumen', 'indicadores')); } } diff --git a/resources/views/productos/producto/galeria.blade.php b/resources/views/productos/producto/galeria.blade.php index e179807..40ed77c 100644 --- a/resources/views/productos/producto/galeria.blade.php +++ b/resources/views/productos/producto/galeria.blade.php @@ -40,6 +40,7 @@ ) ) ) + $('#thumbnails .image').css('cursor', 'pointer') }) $('#galeria').find('.grid .image').click(function(e) { var id = $(this).attr('data-id') @@ -57,6 +58,7 @@ var id = $(this).attr('data-id') galeria.changeImage(id) }) + $('#thumbnails .image').css('cursor', 'pointer') } } $(document).ready(() => { diff --git a/src/Productos/Bodega.php b/src/Productos/Bodega.php index 220b141..0c18688 100644 --- a/src/Productos/Bodega.php +++ b/src/Productos/Bodega.php @@ -9,7 +9,6 @@ class Bodega extends Producto { 'tamaño', 'oficina', 'superficie', - 'arriendo', 'uf_m2' ]; @@ -34,7 +33,7 @@ class Bodega extends Producto { ], [ 'label' => 'Valor Arriendo', - 'name' => 'arriendo', + 'name' => 'valor', 'suffix' => ' UF' ], [ diff --git a/src/Productos/Oficina.php b/src/Productos/Oficina.php index 5e0be09..fca9825 100644 --- a/src/Productos/Oficina.php +++ b/src/Productos/Oficina.php @@ -10,26 +10,16 @@ class Oficina extends Producto { 'm2', 'baños', 'privados', - 'gastos', + 'plazo', 'uf_m2' ]; - /*public function uf_m2() { - return $this->valor / ($this->m2 ?? 1); - }*/ public function privados() { if ($this->privados == 0) { return 'planta libre'; } return 'privados ' . $this->privados; } - public function map($data): Model { - parent::map($data); - if (strpos($this->gastos, '.') === false and $data->gastos != '') { - $this->gastos = number_format($data->gastos, 0, ',', '.'); - } - return $this; - } public function getProperties(): array { $properties = parent::getProperties(); foreach ($properties as &$property) { @@ -70,9 +60,8 @@ class Oficina extends Producto { public function getShow() { $data = $this->getFicha(); $data []= (object) [ - 'label' => 'Gastos Comunes', - 'name' => 'gastos', - 'prefix' => '$' + 'label' => 'Plazo de Contrato', + 'name' => 'plazo' ]; $data []= (object) [ 'label' => 'UF/m²',