@extends('layout.base')

@section('content')
<div class="row page-heading">
	<h3><a href="{{url('', ['p' => 'ventas', 'a' => 'show', 'venta' => $venta->id])}}">Pagar Reajuste - {{$venta->unidad()->descripcion}} - {{$venta->proyecto()->descripcion}}</a></h3>
</div>
<br />
<form method="post" class="form-horizontal" action="{{url('', ['p' => 'reajustes', 'a' => 'pagado', 'venta' => $venta->id])}}">
<div class="form-group">
	<div class="col-md-2">Fecha Pago</div>
	<div class="col-md-3">{{format('shortDate', $venta->pie()->reajuste()->fecha)}}</div>
</div>
<div class="form-group">
	<div class="col-md-2">Fecha</div>
	@include('form.fecha')
</div>
<div class="form-group">
	<div class="col-md-2">Valor Pagado [$]</div>
	<div class="col-md-4"><input type="text" name="valor" class="form-control" value="{{$venta->pie()->reajuste()->valor}}" /></div>
</div>
<div class="form-group">
	<div class="col-md-offset-2 col-md-3"><input type="submit" value="Pagar" class="form-control" /></div>
</div>
@endsection