Files
intranet/resources/views/ventas/resciliaciones.blade.php
2020-12-01 17:23:13 -03:00

38 lines
1.3 KiB
PHP

@extends('layout.base')
@section('content')
<div class="row page-heading">
<div class="col-md-12 h2">Resciliaciones [{{count($resciliaciones)}}]</div>
</div>
<br />
<table class="table table-striped">
<thead>
<tr>
<th>Proyecto</th>
<th>Departamento</th>
<th>Fecha Promesa</th>
<th>Fecha Resciliaci&oacute;n</th>
<th>UF/m&#0178;</th>
<th>Anticipo [UF]</th>
<th>Anticipo [$]
<th>Devoluci&oacute;n [UF]</th>
<th>Devoluci&oacute;n [$]</th>
</tr>
</thead>
<tbody>
@foreach ($resciliaciones as $resciliacion)
<tr>
<td>{{$resciliacion->proyecto()->descripcion}}</td>
<td>{{$resciliacion->unidad()->descripcion}}</td>
<td>{{format('shortDate', $resciliacion->fecha)}}</td>
<td>{{(($resciliacion->resciliacion) ? format('shortDate', $resciliacion->resciliacion()->estado()->fecha) : '')}}</td>
<td class="text-right">{{format('ufs', $resciliacion->uf_m2())}}</td>
<td class="text-right">{{format('ufs', $resciliacion->anticipo())}}</td>
<td class="text-right">{{format('pesos', $resciliacion->anticipo('pesos'))}}</td>
<td class="text-right">{{(($resciliacion->resciliacion) ? format('ufs', $resciliacion->resciliacion()->valor('ufs')) : '')}}</td>
<td class="text-right">{{(($resciliacion->resciliacion) ? format('pesos', $resciliacion->resciliacion()->valor('pesos')) : '')}}</td>
</tr>
@endforeach
</tbody>
</table>
@endsection