Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl>
Reviewed-on: #45
This commit is contained in:
2025-10-04 11:40:52 -03:00
parent 6ddc48ec60
commit 742de657c5
815 changed files with 62089 additions and 3287 deletions

View File

@ -31,7 +31,7 @@
@include('layout.body.scripts.datatables')
@push('page_scripts')
<script type="text/javascript">
<script>
class Row
{
proyecto
@ -45,6 +45,9 @@
draw() {
const tipo = this.unidad.proyecto_tipo_unidad.tipo_unidad.descripcion
let unidad = tipo.charAt(0).toUpperCase() + tipo.slice(1) + ' ' + this.unidad.descripcion
if (typeof this.venta !== 'undefined') {
unidad = this.venta.propiedad.tipologia
}
let precio = 0
let propietario = ''
let fecha = ''
@ -55,6 +58,7 @@
if (!this.venta.current_estado.tipo_estado_venta.activa) {
unidad.html(unidad.html() + ' (I)')
}
unidad.html(unidad.html() + ' <i class="angle right icon"></i>')
propietario = $('<a></a>')
.attr('href','{{$urls->base}}/search/"' + encodeURIComponent(this.venta.propietario.nombre_completo) + '"/propietario')
.html(this.venta.propietario.nombre_completo)