<?php echo csrf_field(); ?>
<div class='row'>
  <div class="col-md-12 col-sm-12  ">
    <div class="x_panel">
      <!--<div class="x_title">
        <h2>subtitulo</h2>
        <ul class="nav navbar-right panel_toolbox">
          <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
          </li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                <a class="dropdown-item" href="#">Settings 1</a>
                <a class="dropdown-item" href="#">Settings 2</a>
              </div>
          </li>
          <li><a class="close-link"><i class="fa fa-close"></i></a>
          </li>
        </ul>
        <div class="clearfix"></div>
      </div>-->
      <div class="x_content">
        
        

        <nav class="navbar navbar-expand-lg navbar-dark bg-dark-blue">
          <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="collapse navbar-collapse" id="navbarTogglerDemo01">
            
            <form class="form-horizontal" style="width: 100%;" action="javascript:">
              <div class="row">
                
                <div class="col-md-5 col-sm-12">
                  <select class="form-control form-control-sm" id="departamento" name="departamento" required="required" onchange="ea_temp_show_clave(this.value)">
                    <option value>.:Departamento:.</option>
                    @foreach ($departamentos as $d)
                      <option value="{{ $d->id }}">{{ $d->nombre }}</option>
                    @endforeach
                  </select>
                </div>
                
                <div class="col-md-5 col-sm-12" id='div_select_indicador'>
                  <select class="form-control form-control-sm" readonly='readonly'><option>.:Indicador:.</option></select>
                </div>

                <div class="col-md-2 col-sm-12" id='div_nueva'>
                  <a class="btn btn-outline-light btn-sm btn-block dropdown-toggle disabled" href="#" id="btn_nueva" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    Nueva Partida
                  </a>
                  <div class="dropdown-menu" aria-labelledby="btn_nueva">
                    <a class="dropdown-item" href="#" onclick="ea_add_partida_normal();">Normal</a>
                    <a class="dropdown-item" href="#" onclick="ea_add_partida_restringida();">Restrigida</a>
                  </div>
                </div>

              </div>
            </form>
          </div>
        </nav>
        
        <div class="row mt-3">
          <div class="col ml-5">
            <div class="form-group text-center">
              <label class="col-form-label ">Capturado POA:</label>
            </div>
          </div>
          <div class="col">
            <div class="form-group">
              <div class="input-group input-group-sm">
                <div class="input-group-prepend"><span class="input-group-text">$</span></div>
                <input type="text" class="form-control text-right" placeholder=" 0.00" value="{{ number_format($captacion->capturado_poa_nuevo,2) }}" />
              </div>
            </div>
          </div>
          <div class="col">
            <div class="form-group text-center">
              <label class="col-form-label">Captación Nueva:</label>
            </div>
          </div>
          <div class="col mr-5">
            <div class="form-group">
              <div class="input-group input-group-sm">
                <div class="input-group-prepend"><span class="input-group-text">$</span></div>
                <input type="text" class="form-control text-right" placeholder=" 0.00" value="{{ number_format($captacion->captacion_nueva,2) }}" />
              </div>
            </div>
          </div>
        </div>

          <form id='form-nuevo'>

            <div id='div_adecuacion_externa'></div>

            <div class="row mt-5" id='div_botones' style="display: none;">
              <div class="col-md-3 col-sm-12"></div>
              <div class="col-md-6 col-sm-12">
                <div class="row">
                  <div class="col">
                    <button type="button" onclick="javascript:ea_temp_validar();" class="btn btn-outline-success btn-block"><i class="fa fa-save"></i> Guardar</button>
                  </div>
                  <div class="col">
                    <button type="button" class="btn btn-outline-dark btn-block"><i class="fa fa-times"></i> Cancelar</button>
                  </div>
                </div>
              </div>
              <div class="col-md-3 col-sm-12"></div>
            </div>

          </form>
        
      </div>
    </div>
  </div>
</div>