@extends('layout.base')

@section('content')
<div class="page-heading">
	<h2>Editar Bono Pie - Venta <a href="{{nUrl('venta', 'show', ['venta' => $venta->id])}}">{{$venta->unidad()->descripcion}}</a></h2>
</div>
<br />
<form class="form-horizontal" method="post" action="{{nUrl('bonos', 'do_edit', ['venta' => $venta->id])}}">
<div class="row">
	<div class="col-md-2">Pie</div>
	<div class="col-md-2">
		@if ($venta->pie())
			{{format('ufs', $venta->pie()->valor('uf'), null, true)}}
		@endif
	</div>
</div>
<br />
<div class="form-group">
	<div class="col-md-2">Valor</div>
	<div class="col-md-3"><input type="text" name="valor" class="form-control" value="{{round($venta->bonoPie()->pago()->valor('ufs'), 2)}}" /></div>
	<div class="col-md-2">UF</div>
</div>
<div class="form-group">
	<div class="col-md-offset-2 col-md-2">
		<button class="form-control" type="submit">Editar</button>
	</div>
</div>
</form>
@endsection
