Files
intranet/resources/views/proyectos/ventas.blade.php

88 lines
3.2 KiB
PHP
Raw Normal View History

2020-12-01 17:23:13 -03:00
@if (count($proyecto->ventas()) > 0)
<tr>
<td>
<a href="{{url('', ['p' => 'ventas', 'a' => 'list', 'proyecto' => $proyecto->id])}}">Ventas</a>
@if ($proyecto->estado()->tipo()->etapa()->orden >= 4)
<br />
<a href="{{nUrl('proyectos', 'reservas', ['proyecto' => $proyecto->id])}}">
<i class="building icon"></i>
</a>
@endif
</td>
<td colspan="2">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>% Vendido</th>
<th>m&#0178;</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{count($proyecto->ventas())}}</td>
<td>{{\App\Helper\Format::number(count($proyecto->ventas())/count($proyecto->unidades(1)) * 100, 2)}} %</td>
<td>{{\App\Helper\Format::number($proyecto->valores()->vendidos->departamentos->mts->vendibles->total, 2)}}</td>
</tr>
</tbody>
<thead>
<tr>
<th>
UF vendido<br/>
Bruto - Neto
</th>
<th>UF/m&#0178; Neto</th>
<th>UF promedio</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{{format('ufs', $proyecto->valores()->vendidos->ingreso->bruto, null, true)}} - {{\App\Helper\Format::ufs($proyecto->valores()->vendidos->ingreso->neto, true)}}
<br />
{{format('ufs', $proyecto->valores()->vendidos->ingreso->abonado, null, true)}} ({{format('ufs', $proyecto->valores()->vendidos->ingreso->pagado, null, true)}})
</td>
<td>{{\App\Helper\Format::ufs($proyecto->valores()->vendidos->departamentos->uf_m2->promedio, true)}}</td>
<td>{{\App\Helper\Format::ufs($proyecto->valores()->vendidos->departamentos->precio->promedio, true)}}</td>
</tr>
</tbody>
<thead>
<tr>
<th>Estacionamientos</th>
<th>Bodegas</th>
<th>Valor Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{count($proyecto->unidades(2)) - count($proyecto->unidadesDisponibles(2))}}</td>
<td>{{count($proyecto->unidades(3)) - count($proyecto->unidadesDisponibles(3))}}</td>
<td>{{format('ufs', $proyecto->valores()->vendidos->otros->valor, null, true)}}</td>
</tr>
</tbody>
<thead>
<tr>
<th>Operadores</th>
<th>Bono Pie</th>
<th>Premios</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{format('ufs', $proyecto->valores()->vendidos->comision, null, true)}} ({{format('percent', $proyecto->valores()->vendidos->comision / $proyecto->valores()->vendidos->ingreso->neto * 100, null, true)}} Neto)</td>
<td>{{format('ufs', $proyecto->valores()->vendidos->bono->valor, null, true)}} ({{format('percent', $proyecto->valores()->vendidos->bono->valor / $proyecto->valores()->vendidos->ingreso->neto * 100, null, true)}} Neto)</td>
<td>{{format('ufs', $proyecto->valores()->vendidos->premios(), null, true)}} ({{format('percent', $proyecto->valores()->vendidos->premios() / $proyecto->valores()->vendidos->ingreso->neto * 100, null, true)}} Neto)</td>
</tr>
</tbody>
<thead>
<tr>
<th>Ingreso Total</th>
<th>{{format('ufs', $proyecto->valores()->vendidos->ingreso->neto + $proyecto->valores()->vendidos->otros->valor, null, true)}}</th>
<th></th>
</tr>
</thead>
</table>
</td>
</tr>
@endif