<?php echo csrf_field(); ?>
<div class='row'>
  <div class="col-md-12 col-sm-12  ">
    <div class="x_panel">
      <div class="x_title">
        <h2>Límites permitidos para ejercer en el año por departamento</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-4 col-sm-12"></div>
                
                <div class="col-md-4 col-sm-12">
                  <select class="form-control form-control-sm">
                    <option>.:Año:.</option>
                    <option selected="selected">2020</option>
                  </select>
                </div>

                <div class="col-md-2 col-sm-12">
                  <button class="btn btn-outline-info btn-sm" type="submit" data-toggle="tooltip" data-placement="left" title="Buscar"><span class="fa fa-search"></span></button>
                  <button class="btn btn-outline-light btn-sm" type="reset"><span class="fa fa-undo" data-toggle="tooltip" data-placement="left" title="Limpiar"></span></button>
                </div>

              </div>
            </form>
          </div>
        </nav>-->

        
        <form class="form-horizontal" id='form-limites' style="width: 100%;" action="javascript:autorizar_firma('Programa Operativo Anual - Límites', 'poa_limites_update()');">
          <div class="row">
            <div class="col-md-1"></div>
            <div class="col-md-10 col-sm-12">
              <div class='table mt-3'>
                <div class="row encabezado">
                  <div class="col-md-1 col-sm-12">ID</div>
                  <div class="col-md-4 col-sm-12">Departamento</div>
                  <div class="col-md-2 col-sm-12">Autorizado</div>
                  <div class="col-md-2 col-sm-12">Ejercido</div>
                  <div class="col-md-3 col-sm-12">Límite</div>
                </div>
                <div class="row contenido-500">
                  <div class='col-md-12'>
                    <?php $i = 0;?>
                    <?php $__currentLoopData = $departamentos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <?php $i++;?>
                      <div class="row cuerpo">
                        <div class="col-md-1 col-sm-12 text-center"><?php echo e($i); ?></div>
                        <div class="col-md-4 col-sm-12"><?php echo e($d->departamento->nombre); ?></div>
                        <div class="col-md-2 col-sm-12 text-right">$ <span><?php echo e(number_format($d->autorizado, 2)); ?></span></div>
                        <div class="col-md-2 col-sm-12 text-right">$ <span><?php echo e(number_format($d->ejercido,2)); ?></span></div>
                        <div class="col-md-3 col-sm-12">
                          <div class="input-group input-group-sm">
                            <div class="input-group-prepend">
                              <span class="input-group-text">$</span>
                            </div>
                            <input type="number" class="form-control text-right limite" placeholder=" 0.00" value='<?php echo e($d->limite); ?>' data-id='<?php echo e($d->id); ?>' required="required" min='0' max="<?php echo e($d->autorizado); ?>">
                          </div>
                        </div>
                      </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-md-1"></div>
          </div>
              
          <div class="row">
            <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="submit" class="btn btn-success btn-block"><i class="fa fa-pencil"></i> Actualizar</button></div>  
                <div class="col"><button type="button" class="btn btn-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>


<?php /**PATH /home3/itzitacu/public_html/poa/laravel/resources/views/poa/departamento_limite.blade.php ENDPATH**/ ?>