@extends('layout.base') @section('content')

Editar Forma de Pago - {{$venta->unidad()->descripcion}} - {{$venta->proyecto()->descripcion}}

@if ($venta->pie != 0)
Pie

Valor [UF]
Cuotas
@if ($venta->pie()->reajuste != 0)
Reajuste

Fecha
pie()->reajuste()->fecha, config('app.timezone')) ?> @include('form.fecha')
Valor [$]
@else
Fecha
@include('form.fecha')
@endif @endif
Escritura

@if ($venta->escritura != 0)
Fecha
escritura()->pago()->fecha, config('app.timezone')) ?> @include('form.fecha')
Valor [$]
@else
Fecha
@include('form.fecha')
Valor [$]
@endif
Crédito

@if ($venta->credito != 0) @endif
@endsection @if ($venta->pie != 0) Pie pie()->valorPagado('pesos'); $total_uf = $venta->pie()->valorPagado(); $anticipo += $venta->pie()->valorPagado('pesos'); $anticipo_uf += $venta->pie()->valorPagado() ?> {{format('ufs', $venta->pie()->valor)}} UF $ {{format('pesos', $venta->pie()->valorPesos())}} Cuotas {{count($venta->pie()->pagadas())}} / {{$venta->pie()->cuotas}} @if (count($venta->pie()->cuotas()) < $venta->pie()->cuotas) @endif Pagado {{format('ufs', $venta->pie()->valorPagado())}} UF $ {{format('pesos', $venta->pie()->valorPagado('pesos'))}} @if ($venta->pie()->reajuste == 0) @if ($venta->escriturado == 0) Reajustar @else @endif @else pie()->reajuste()->valor; $total_uf += $venta->pie()->reajuste()->valor('ufs'); $anticipo += $venta->pie()->reajuste()->valor; $anticipo_uf += $venta->pie()->reajuste()->valor('ufs'); ?> Reajuste {{format('ufs', $venta->pie()->reajuste()->valor('ufs'))}} UF $ {{format('pesos', $venta->pie()->reajuste()->valor)}} {{format('shortDate', $venta->pie()->reajuste()->estado()->fecha)}} @if ($venta->pie()->reajuste()->estado()->estado < 2) @endif @endif @endif @if ($venta->bono_pie != 0) Bono Pie bonoPie()->pago()->valor; $total_uf += $venta->bonoPie()->pago()->valor('ufs'); $anticipo += $venta->bonoPie()->pago()->valor; $anticipo_uf += $venta->bonoPie()->pago()->valor('ufs'); ?> {{format('ufs', $venta->bonoPie()->pago()->valor('ufs'))}} UF $ {{format('pesos', $venta->bonoPie()->pago()->valor)}} @endif @if ($venta->escritura != 0) escritura()->pago()->valor; $total_uf += $venta->escritura()->pago()->valor('ufs'); $anticipo += $venta->escritura()->pago()->valor; $anticipo_uf += $venta->escritura()->pago()->valor('ufs'); ?> Escritura {{format('ufs', $venta->escritura()->pago()->valor('ufs'))}} UF $ {{format('pesos', $venta->escritura()->pago()->valor)}} {{format('shortDate', $venta->escritura()->pago()->estado()->fecha)}} @if ($venta->escritura()->pago()->estado()->estado == 1) @elseif ($venta->escritura()->pago()->estado()->estado == 0) @endif @endif Anticipo {{format('ufs', $anticipo_uf)}} UF $ {{format('pesos', $anticipo)}} @if ($venta->subsidio != 0) subsidio()->total(); $total_uf += $venta->subsidio()->total('ufs') ?> Subsidio {{format('ufs', $venta->subsidio()->total('ufs'))}} UF $ {{format('pesos', $venta->subsidio()->total())}} {{format('shortDate', $venta->subsidio()->pago()->fecha)}} @if ($venta->subsidio()->pago()->estado()->estado < 2) @endif @endif @if ($venta->credito != 0) Crédito @if ($venta->credito != 0) @endif credito()->pago()->valor; $total_uf += $venta->credito()->pago()->valor('ufs') ?> {{format('ufs', $venta->credito()->pago()->valor('ufs'))}} UF $ {{format('pesos', $venta->credito()->pago()->valor)}} {{format('shortDate', $venta->credito()->pago()->estado()->fecha)}} @if ($venta->credito()->pago()->estado()->estado < 1) @elseif ($venta->credito()->pago()->estado()->estado < 2) @endif Banco: @if ($venta->credito()->pago()->banco != 0) {{$venta->credito()->pago()->banco()->nombre}} @endif @elseif ($venta->escriturado == null) Crédito @if ($venta->credito != 0) @endif {{format('ufs', $venta->valor_uf - $total_uf)}} UF @endif Total {{format('ufs', $total_uf)}} UF $ {{format('pesos', $total)}} {{format('ufs', $total_uf - $venta->valor_uf)}} UF