@extends('layout.base')

@section('content')
<div class="panel panel-default">
	<div class="panel-heading">Editar Pie - {{$venta->unidad()->descripcion}} - {{$venta->proyecto()->descripcion}}</div>
	<div class="panel-body">
	<form class="form-horizontal" method="post" action="{{url('', ['p' => 'pies', 'a' => 'editar', 'venta' => $venta->id])}}">
		<div class="form-group">
			<div class="col-md-2">Monto</div>
			<div class="col-md-4"><input type="text" name="valor" value="{{$venta->pie()->valor}}" class="form-control" /></div>
			<div class="col-md-1">UF</div>
		</div>
		<div class="form-group">
			<div class="col-md-2">Cuotas</div>
			<div class="col-md-2"><input type="text" maxlength="2" name="cuotas" class="form-control" value="{{$venta->pie()->cuotas}}" /></div>
		</div>
		<div class="form-group">
			<div class="col-md-offset-2 col-md-3"><input type="submit" value="Editar" class="form-control" /></div>
		</div>
	</form>
	</div>
</div>
@endsection