31 lines
1.3 KiB
PHP
31 lines
1.3 KiB
PHP
@extends('layout.base')
|
|
|
|
@section('content')
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">Abonar Crédito - {{$venta->unidad()->descripcion}} - {{$venta->proyecto()->descripcion}}</div>
|
|
<div class="panel-body">
|
|
<form method="post" class="form-horizontal" action="{{url('', ['p' => 'creditos', 'a' => 'abonando', 'venta' => $venta->id])}}">
|
|
<div class="row">
|
|
<div class="col-md-2">Crédito</div>
|
|
<div class="col-md-3">{{format('ufs', $venta->credito()->pago()->valor('ufs'))}} UF</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-2">Fecha Pago</div>
|
|
<div class="col-md-3">{{format('shortDate', $venta->credito()->pago()->estado()->fecha)}}</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-2">Valor [$]</div>
|
|
<div class="col-md-3"><input type="text" name="valor" value="{{$venta->credito()->pago()->valor}}" class="form-control" /></div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-2">Fecha Abono</div>
|
|
<?php $f = \Carbon\Carbon::parse($venta->credito()->pago()->estado()->fecha) ?>
|
|
@include('form.fecha')
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-offset-2 col-md-3"><input type="submit" value="Abonar" class="form-control" /></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|