47 lines
2.0 KiB
PHP
47 lines
2.0 KiB
PHP
<tr>
|
|
<td>
|
|
Escritura
|
|
@if ($escritura !== null)
|
|
<sub>
|
|
<a href="{{$urls->base}}/venta/{{$venta->id}}/escritura">
|
|
<i class="edit icon"></i>
|
|
</a>
|
|
</sub>
|
|
@else
|
|
<a href="{{$urls->base}}/venta/{{$venta->id}}/escritura/add">
|
|
<i class="plus icon"></i>
|
|
</a>
|
|
@endif
|
|
</td>
|
|
@if ($escritura !== null)
|
|
<td></td>
|
|
<td class="right aligned">
|
|
{{$format->ufs($escritura->pago->valor())}}
|
|
@if (count($venta->formaPago()->cuotasAbono) > 0)
|
|
<br /> + (<a href="{{$urls->base}}/venta/{{$venta->id}}/escritura/cuotas">{{$format->ufs($venta->formaPago()->cuotasAbono())}}</a>)
|
|
@endif
|
|
</td>
|
|
<td class="right aligned">
|
|
{{$format->pesos($escritura->pago->valor)}}
|
|
@if (count($venta->formaPago()->cuotasAbono) > 0)
|
|
<br /> + (<a href="{{$urls->base}}/venta/{{$venta->id}}/escritura/cuotas">{{$format->pesos($venta->formaPago()->cuotasAbono('pesos'))}}</a>)
|
|
@endif
|
|
</td>
|
|
<td id="escritura_pago" class="{{$escritura->pago->currentEstado->tipoEstadoPago->descripcion === 'no pagado' ? 'warning' : ($escritura->pago->currentEstado->tipoEstadoPago->descripcion === 'depositado' ? 'positive' : '')}}">
|
|
<span class="text">{{$escritura->pago->currentEstado->fecha->format('d-m-Y')}}</span>
|
|
@if ($escritura->pago->currentEstado->tipoEstadoPago->descripcion === 'no pagado')
|
|
<a href="javascript: depositar({row_id: '#escritura_pago', pago_id: {{$escritura->pago->id}}});" title="Depositar">
|
|
<i class="dollar sign icon"></i>
|
|
</a>
|
|
@elseif ($escritura->pago->currentEstado->tipoEstadoPago->descripcion === 'depositado')
|
|
<a href="javascript: abonar({row_id: '#escritura_pago', pago_id: {{$escritura->pago->id}}});" title="Abonar">
|
|
<i clasS="piggy bank icon"></i>
|
|
</a>
|
|
@endif
|
|
</td>
|
|
<td></td>
|
|
@else
|
|
<td colspan="5"></td>
|
|
@endif
|
|
</tr>
|