35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
@extends('layout.base')
|
|
|
|
@section('content')
|
|
<div class="row page-heading">
|
|
<div class="col-md-12 h2">Créditos Pendientes</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-12 text-right"><a href="{{url('', ['p' => 'informes', 'a' => 'creditos_pendientes'])}}">Exportar a Excel</a></div>
|
|
</div>
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Proyecto</th>
|
|
<th>Departamento</th>
|
|
<th>Valor [$]</th>
|
|
<th>Valor [UF]</th>
|
|
<th>Fecha Escritura</th>
|
|
<th>Estado</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($creditos as $credito)
|
|
<tr>
|
|
<td>{{$credito->venta()->proyecto()->descripcion}}</td>
|
|
<td><a href="{{url('', ['p' => 'ventas', 'a' => 'show', 'venta' => $credito->venta()->id])}}">{{$credito->venta()->unidad()->descripcion}}</a></td>
|
|
<td>{{format('pesos', $credito->pago()->valor('pesos'), null, true)}}</td>
|
|
<td>{{format('ufs', $credito->pago()->valor('ufs'), null, true)}}</td>
|
|
<td>{{format('shortDate', (($credito->venta()->escriturado) ? $credito->venta()->escriturado : $credito->pago()->estado()->fecha))}}</td>
|
|
<td>{{ucwords($credito->pago()->estado()->tipo()->descripcion)}}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@endsection |