diff --git a/app/resources/views/proyectos/brokers/contracts/show.blade.php b/app/resources/views/proyectos/brokers/contracts/show.blade.php
index a61db80..2c77b4d 100644
--- a/app/resources/views/proyectos/brokers/contracts/show.blade.php
+++ b/app/resources/views/proyectos/brokers/contracts/show.blade.php
@@ -14,67 +14,77 @@
Fecha Inicio: {{ $contract->current()->date->format('d/m/Y') }}
-
-
-
- Tipo |
- Tipo Order |
- Unidad |
- Unidad Orden |
- Estado |
- Precio |
- Promoción |
- Fecha Inicio |
- Fecha Término |
- Acciones |
-
-
-
-
+
+
+
+
+
+
+ Tipo |
+ Cantidad |
+ Precio |
+ Promoción |
+ Acciones |
+
+
+ Mínimo |
+ Promedio |
+ Máximo |
+ Mínima |
+ Promedio |
+ Máxima |
+
+
+
+
+
+
+
+
+
+ Tipo |
+ Línea |
+ Orientación |
+ Cantidad |
+ Precio |
+ Promoción |
+ Acciones |
+
+
+ Mínimo |
+ Promedio |
+ Máximo |
+ Mínima |
+ Promedio |
+ Máxima |
+
+
+
+
+
+
+
+
+
+ Tipo |
+ Tipo Order |
+ Unidad |
+ Unidad Orden |
+ Estado |
+ Precio |
+ Promoción |
+ Fecha Inicio |
+ Fecha Término |
+ Acciones |
+
+
+
+
+
@endsection
@@ -312,9 +322,8 @@
tbody.innerHTML += [
`
`,
`${tipo.charAt(0).toUpperCase() + tipo.slice(1)} | `,
- `${linea} | `,
+ `${linea} | `,
`${orientacion} | `,
- `${unidades[0].proyecto_tipo_unidad.tipologia} | `,
`${unidades.length} | `,
`UF ${units.formatters.ufs.format(precios.min)} | `,
`UF ${units.formatters.ufs.format(precios.avg)} | `,
@@ -363,18 +372,25 @@
}
$(`#${units.ids.units}`).DataTable(dto)
- document.getElementById(units.ids.unidades_container).style.visibility = 'hidden'
- document.getElementById(units.ids.tipos).style.visibility = 'hidden'
- document.getElementById(units.ids.lineas).style.visibility = 'hidden'
+ $(`#${units.ids.results}`).find('.tabular.menu .item').tab({
+ onVisible: function(tabPath) {
+ if (tabPath !== 'unidades') {
+ return
+ }
+ $(this.querySelector('table')).DataTable().columns.adjust().draw()
+ this.querySelector('table').style.width = ''
+ }
+ })
+ document.getElementById(units.ids.results).style.visibility = 'hidden'
units.get().units().then(() => {
units.get().prices().then(() => {
units.get().promotions().then(() => {
units.get().sold().then(() => {
$(units.ids.loader).hide()
- document.getElementById(units.ids.unidades_container).style.visibility = 'visible'
- document.getElementById(units.ids.tipos).style.visibility = 'visible'
- document.getElementById(units.ids.lineas).style.visibility = 'visible'
+
+ document.getElementById(units.ids.results).style.visibility = 'visible'
+
units.draw().units()
units.draw().tipos()
units.draw().lineas()
@@ -385,7 +401,7 @@
}
}
$(document).ready(function () {
- units.setup({units: 'unidades', unidades_container: 'unidades_container', tipos: 'tipos', lineas: 'lineas', loader: '.ui.loader'})
+ units.setup({results: 'results', units: 'unidades', tipos: 'tipos', lineas: 'lineas', loader: '.ui.loader'})
})
@endpush