@extends('layout.base')

@section('content')
  <div class="row page-heading">
    <h3>Agregar Pagar&eacute;
      <a href="{{nUrl('proyectos', 'construccion', ['proyecto' => $proyecto->id])}}">
        <span class="glyphicon small glyphicon-chevron-up"></span>
      </a>
    </h3>
  </div>
  <br />
  <form class="form-horizontal" method="post" action="{{nUrl('pagares', 'do_add', ['proyecto' => $proyecto->id])}}">
    <div class="form-group">
      <div class="col-md-3">Estado Pago</div>
      <div class="col-md-1"><input type="text" name="estado_pago" class="form-control" /></div>
    </div>
    <div class="form-group">
      <div class="col-md-3">N&uacute;mero</div>
      <div class="col-md-3"><input type="text" name="numero" class="form-control" /></div>
    </div>
    <div class="form-group">
      <div class="col-md-3">Moneda</div>
      <div class="col-md-2">
        <select name="moneda" class="form-control">
          <option value="UF">UF</option>
          <option value="Pesos">Pesos</option>
        </select>
      </div>
    </div>
    <div class="form-group">
      <div class="col-md-3">Capital</div>
      <div class="col-md-3"><input type="text" name="capital" class="form-control" /></div>
    </div>
    <div class="form-group">
      <div class="col-md-3">Tasa [%]</div>
      <div class="col-md-1"><input type="text" name="tasa" class="form-control" /></div>
    </div>
    <div class="form-group">
      <div class="col-md-3">Fecha Otorgado</div>
      <?php $id = '_banco' ?>
      @include('form.fecha')
    </div>
    <div class="form-group">
      <div class="col-md-3">Duraci&oacute;n</div>
      <div class="col-md-1"><input type="text" name="duracion" class="form-control" /></div>
    </div>
    <div class="form-group">
      <div class="col-md-3">Fecha Abonado</div>
      <?php unset($id) ?>
      @include('form.fecha')
    </div>
    <div class="form-group">
      <div class="col-md-3">Monto Abonado [$]</div>
      <div class="col-md-3"><input type="text" name="abonado" class="form-control" /></div>
    </div>
    <div class="form-group">
      <div class="col-md-offset-1 col-md-2">
        <button class="form-control">Agregar</button>
      </div>
    </div>
  </form>
@endsection
