Compare commits
2 Commits
2833e58bef
...
c1d4046c93
Author | SHA1 | Date | |
---|---|---|---|
c1d4046c93 | |||
cc566d4a39 |
@ -1,4 +1,4 @@
|
|||||||
#nosotros { background-color: #a7a9ab; color: white; padding-top: 3rem; padding-bottom: 4rem; }
|
#nosotros { background-color: #a7a9ab; color: white; font-size: 1.2rem !important; padding-top: 3rem; padding-bottom: 4rem; }
|
||||||
|
|
||||||
#nosotros .header { color: inherit; }
|
#nosotros .header { color: inherit; }
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
background-color: $gris-medio;
|
background-color: $gris-medio;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
|
font-size: 1.2rem !important;
|
||||||
|
|
||||||
padding-top: 3rem;
|
padding-top: 3rem;
|
||||||
padding-bottom: 4rem;
|
padding-bottom: 4rem;
|
||||||
|
|
||||||
|
@ -20,41 +20,11 @@
|
|||||||
@foreach ($properties as $property)
|
@foreach ($properties as $property)
|
||||||
<div class="ui basic segment">
|
<div class="ui basic segment">
|
||||||
<span class="right floated">
|
<span class="right floated">
|
||||||
{{$producto->{$property->name} }}{{$property->suffix}}
|
{{$property->prefix}}{{$producto->{$property->name} }}{{$property->suffix}}
|
||||||
</span>
|
</span>
|
||||||
{{$property->label}}
|
{{$property->label}}
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
<!-- <div class="ui basic segment">
|
|
||||||
<span class="right floated">
|
|
||||||
{{$producto->valor()}} UF
|
|
||||||
</span>
|
|
||||||
Valor depto
|
|
||||||
</div>
|
|
||||||
<div class="ui basic segment">
|
|
||||||
<span class="right floated">
|
|
||||||
{{$producto->bono}} UF
|
|
||||||
</span>
|
|
||||||
Bono Pie
|
|
||||||
</div>
|
|
||||||
<div class="ui basic segment">
|
|
||||||
<span class="right floated">
|
|
||||||
{{$producto->rentabilidad}}%
|
|
||||||
</span>
|
|
||||||
Rentabilidad
|
|
||||||
</div>
|
|
||||||
<div class="ui basic segment">
|
|
||||||
<span class="right floated">
|
|
||||||
{{$producto->cuota}} UF
|
|
||||||
</span>
|
|
||||||
Valor cuota
|
|
||||||
</div>
|
|
||||||
<div class="ui basic segment">
|
|
||||||
<span class="right floated">
|
|
||||||
{{$producto->entrega}}
|
|
||||||
</span>
|
|
||||||
Entrega Estimada
|
|
||||||
</div> -->
|
|
||||||
<span class="right floated">
|
<span class="right floated">
|
||||||
<a href="{{$urls->base}}/producto/{{$producto->id}}">
|
<a href="{{$urls->base}}/producto/{{$producto->id}}">
|
||||||
<button class="ui inverted brand button">
|
<button class="ui inverted brand button">
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{{$property->label}}:
|
{{$property->label}}:
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
{{$producto->{$property->name} ?? ''}}{{$property->suffix}}
|
{{$property->prefix}}{{$producto->{$property->name} ?? ''}}{{$property->suffix}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -114,9 +114,9 @@ class Producto extends Model {
|
|||||||
$this->id = $data->id ?? null;
|
$this->id = $data->id ?? null;
|
||||||
$this->nombre = $data->nombre;
|
$this->nombre = $data->nombre;
|
||||||
$this->segmento = $data->segmento;
|
$this->segmento = $data->segmento;
|
||||||
|
$this->valor = $data->valor;
|
||||||
$this->direccion = new Direccion();
|
$this->direccion = new Direccion();
|
||||||
$this->direccion->map($data);
|
$this->direccion->map($data);
|
||||||
$this->valor($data->valor);
|
|
||||||
$this->destacado((isset($data->destacado) and $data->destacado == 'on') ? true : false);
|
$this->destacado((isset($data->destacado) and $data->destacado == 'on') ? true : false);
|
||||||
$this->descripcion = $data->descripcion;
|
$this->descripcion = $data->descripcion;
|
||||||
$this->publicacion = $data->publicacion;
|
$this->publicacion = $data->publicacion;
|
||||||
|
@ -33,6 +33,7 @@ class Bodega extends Producto {
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
array_walk($properties, function(&$item) {
|
array_walk($properties, function(&$item) {
|
||||||
|
$item['prefix'] = $item['prefix'] ?? '';
|
||||||
$item['suffix'] = $item['suffix'] ?? '';
|
$item['suffix'] = $item['suffix'] ?? '';
|
||||||
$item = (object) $item;
|
$item = (object) $item;
|
||||||
});
|
});
|
||||||
@ -54,6 +55,7 @@ class Bodega extends Producto {
|
|||||||
'suffix' => ' m²'
|
'suffix' => ' m²'
|
||||||
];
|
];
|
||||||
array_walk($data, function(&$item) {
|
array_walk($data, function(&$item) {
|
||||||
|
$item->prefix = $item->prefix ?? '';
|
||||||
$item->suffix = $item->suffix ?? '';
|
$item->suffix = $item->suffix ?? '';
|
||||||
});
|
});
|
||||||
return $data;
|
return $data;
|
||||||
|
@ -42,6 +42,7 @@ class Oficina extends Producto {
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
array_walk($properties, function(&$item) {
|
array_walk($properties, function(&$item) {
|
||||||
|
$item['prefix'] = $item['prefix'] ?? '';
|
||||||
$item['suffix'] = $item['suffix'] ?? '';
|
$item['suffix'] = $item['suffix'] ?? '';
|
||||||
$item = (object) $item;
|
$item = (object) $item;
|
||||||
});
|
});
|
||||||
@ -52,13 +53,14 @@ class Oficina extends Producto {
|
|||||||
$data []= (object) [
|
$data []= (object) [
|
||||||
'label' => 'Gastos Comunes',
|
'label' => 'Gastos Comunes',
|
||||||
'name' => 'gastos',
|
'name' => 'gastos',
|
||||||
'suffix' => ' UF'
|
'prefix' => '$'
|
||||||
];
|
];
|
||||||
$data []= (object) [
|
$data []= (object) [
|
||||||
'label' => 'UF/m²',
|
'label' => 'UF/m²',
|
||||||
'name' => 'uf_m2'
|
'name' => 'uf_m2'
|
||||||
];
|
];
|
||||||
array_walk($data, function(&$item) {
|
array_walk($data, function(&$item) {
|
||||||
|
$item->prefix = $item->prefix ?? '';
|
||||||
$item->suffix = $item->suffix ?? '';
|
$item->suffix = $item->suffix ?? '';
|
||||||
});
|
});
|
||||||
return $data;
|
return $data;
|
||||||
|
@ -41,7 +41,7 @@ class Retail extends Producto {
|
|||||||
public function getProperties(): array {
|
public function getProperties(): array {
|
||||||
$properties = [];
|
$properties = [];
|
||||||
$properties []= (object) [
|
$properties []= (object) [
|
||||||
'label' => 'Bono Pie en UF',
|
'label' => 'Bono Pie %',
|
||||||
'name' => 'bono'
|
'name' => 'bono'
|
||||||
];
|
];
|
||||||
$properties []= (object) [
|
$properties []= (object) [
|
||||||
@ -49,7 +49,7 @@ class Retail extends Producto {
|
|||||||
'name' => 'rentabilidad'
|
'name' => 'rentabilidad'
|
||||||
];
|
];
|
||||||
$properties []= (object) [
|
$properties []= (object) [
|
||||||
'label' => 'Valor Cuota en UF',
|
'label' => 'Valor Cuota en $',
|
||||||
'name' => 'cuota'
|
'name' => 'cuota'
|
||||||
];
|
];
|
||||||
$properties []= (object) [
|
$properties []= (object) [
|
||||||
@ -84,7 +84,7 @@ class Retail extends Producto {
|
|||||||
[
|
[
|
||||||
'label' => 'Bono Pie',
|
'label' => 'Bono Pie',
|
||||||
'name' => 'bono',
|
'name' => 'bono',
|
||||||
'suffix' => ' UF'
|
'suffix' => '%'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'label' => 'Rentabilidad',
|
'label' => 'Rentabilidad',
|
||||||
@ -94,7 +94,7 @@ class Retail extends Producto {
|
|||||||
[
|
[
|
||||||
'label' => 'Valor Cuota',
|
'label' => 'Valor Cuota',
|
||||||
'name' => 'cuota',
|
'name' => 'cuota',
|
||||||
'suffix' => ' UF'
|
'prefix' => '$'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'label' => 'Entrega Estimada',
|
'label' => 'Entrega Estimada',
|
||||||
@ -102,6 +102,7 @@ class Retail extends Producto {
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
array_walk($properties, function(&$item) {
|
array_walk($properties, function(&$item) {
|
||||||
|
$item['prefix'] = $item['prefix'] ?? '';
|
||||||
$item['suffix'] = $item['suffix'] ?? '';
|
$item['suffix'] = $item['suffix'] ?? '';
|
||||||
$item = (object) $item;
|
$item = (object) $item;
|
||||||
});
|
});
|
||||||
@ -140,6 +141,7 @@ class Retail extends Producto {
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
array_walk($properties, function(&$item) {
|
array_walk($properties, function(&$item) {
|
||||||
|
$item['prefix'] = $item['prefix'] ?? '';
|
||||||
$item['suffix'] = $item['suffix'] ?? '';
|
$item['suffix'] = $item['suffix'] ?? '';
|
||||||
$item = (object) $item;
|
$item = (object) $item;
|
||||||
});
|
});
|
||||||
|
@ -28,6 +28,7 @@ class Terreno extends Producto {
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
array_walk($properties, function(&$item) {
|
array_walk($properties, function(&$item) {
|
||||||
|
$item['prefix'] = $item['prefix'] ?? '';
|
||||||
$item['suffix'] = $item['suffix'] ?? '';
|
$item['suffix'] = $item['suffix'] ?? '';
|
||||||
$item = (object) $item;
|
$item = (object) $item;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user