
<p><h2>Servicios o eventos disponibles</h2></p>

<div class="table">
  <div class="row encabezado">
    <div class="col-md-1 col-sm-1 d-none d-sm-block">Clave Presupuestal</div>
    <div class="col-md-1 col-sm-1 d-none d-sm-block">Partida</div>
    <div class="col-md-4 col-sm-4 d-none d-sm-block">Servicio</div>
    <div class="col-md-2 col-sm-2 d-none d-sm-block">Disponible</div>
    <div class="col-md-2 col-sm-2 d-none d-sm-block">Reducción</div>
    <div class="col-md-2 col-sm-2 d-none d-sm-block">Ampliación</div>
  </div>
  <div class="row contenido-500">
    <div class="col-md-12">
      <?php $__currentLoopData = $detalles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="row cuerpo detalles_restringidos" data-id='<?php echo e($d->id); ?>' id='<?php echo e($d->id); ?>'>
          <div class="col-6 d-flex d-sm-none bg-dark-blue text-white text-center">Clave Presupuestal</div>
          <div class="col-md-1 col-sm-1 col-6 d-flex d-sm-none bg-dark-blue text-white text-center" data-toggle="popover" data-trigger='hover' data-placement="left" data-content="<?php echo e($d->descripcion); ?>"><label style="margin: auto;"><?php echo e($d->clave_completa); ?></label></div>
          <div class="col-md-1 col-sm-1 col-6 d-none d-sm-flex text-center" data-toggle="popover" data-trigger='hover' data-placement="left" data-content="<?php echo e($d->descripcion); ?>"><label style="margin: auto;"><?php echo e($d->clave_completa); ?></label></div>

          <div class="col-6 d-flex d-sm-none text-center">Partida</div>
          <div class="col-md-1 col-sm-1 col-6 text-justify d-flex"><label style="margin: auto"><?php echo e($d->partida_id); ?></label></div>

          <div class="col-6 d-flex d-sm-none text-center">Servicio</div>
          <div class="col-md-4 col-sm-4 col-6 text-justify"><?php echo e($d->servicio); ?></div>
          
          <div class="col-6 d-flex d-sm-none text-center">Disponible</div>
          <div class="col-md-2 col-sm-2 col-6 text-right align-items-center d-flex">
            <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 disponible" placeholder=" 0.00" data-disponible='<?php echo e($d->disponible); ?>' value="<?php echo e(number_format($d->disponible,2)); ?>" readonly="" />
            </div>
          </div>
          
          <div class="col-6 d-flex d-sm-none text-center">Reducción</div>
          <div class="col-md-2 col-sm-2 col-6 text-right align-items-center d-flex">
            <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 reduccion" placeholder=" 0.00" oninput="ia_temp_cajas('REDUCCION', this.value, '<?php echo e($d->id); ?>');"  />
            </div>
          </div>

          <div class="col-6 d-flex d-sm-none text-center">Ampliación</div>
          <div class="col-md-2 col-sm-2 col-6 text-right align-items-center d-flex">
            <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 ampliacion" placeholder=" 0.00" oninput="ia_temp_cajas('AMPLIACION', this.value, <?php echo e($d->id); ?>);";  />
            </div>
          </div>
        </div>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

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


<h2>Nuevo Evento</h2>
<!-- Tabla de servicio, sede, justificacion -->
<div class="table">
  <div class="row encabezado gris">
    <div class="col-md-1 col-sm-1 d-none d-sm-block">Clave Presupuestal</div>
    <div class="col-md-1 col-sm-1 d-none d-sm-block">Partida</div>
    <div class="col-md-4 col-sm-4 d-none d-sm-block">Servicio o Evento</div>
    <div class="col-md-2 col-sm-2 d-none d-sm-block">Fecha Inicio</div>
    <div class="col-md-2 col-sm-2 d-none d-sm-block">Fecha Termino</div>
    <div class="col-md-2 col-sm-2 d-none d-sm-block">Ampliación</div>
  </div>
  <div class="row contenido-500">
    <div class="col-md-12">
      <div class="row cuerpo evento_nuevo">
        <div class="col-6 d-flex d-sm-none gris text-center">Clave Presupuestal</div>
          <?php if(count($claves)==1): ?>
            <input type="hidden" id="presupuesto" name="presupuesto" value='<?php echo e($claves[0]->id); ?>'>
            <div class="col-md-1 col-sm-1 col-6 d-flex d-sm-none bg-dark-blue text-white text-center" data-toggle="popover" data-trigger='hover' data-placement="left" data-content="<?php echo e($claves[0]->descripcion); ?>"><label style="margin: auto;"><?php echo e($claves[0]->clave_completa); ?></label></div>
            <div class="col-md-1 col-sm-1 col-6 d-none d-sm-flex text-center" data-toggle="popover" data-trigger='hover' data-placement="left" data-content="<?php echo e($claves[0]->descripcion); ?>"><label style="margin: auto;"><?php echo e($claves[0]->clave_completa); ?></label></div>
          <?php else: ?>
            <div class="col-md-1 col-sm-1 col-6 gris_temp d-flex text-center partida align-items-center">
              <select class="form-control form-control-sm" id="presupuesto" name="presupuesto">
                <option>.:Seleccione:.</option>
                <?php $__currentLoopData = $claves; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <option value='<?php echo e($d->id); ?>'><?php echo e($d->clave_completa); ?> - <?php echo e($d->descripcion); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </select>
            </div>
          <?php endif; ?>

        <div class="col-6 d-flex d-sm-none text-center">Partida</div>
        <div class="col-md-1 col-sm-1 col-6 text-center d-flex"><label style="margin: auto"><?php echo e($detalles[0]->partida_id); ?></label></div>

        <div class="col-6 d-flex d-sm-none text-center">Servicio o Evento</div>
        <div class="col-md-4 col-sm-4 col-6 text-center"><textarea rows='3' class="form-control form-control-sm" placeholder='Redactar poniendo énfasis en el beneficio de los estudiantes.' id='servicio' name='servicio'></textarea></div>

        <div class="col-6 d-flex d-sm-none text-center">Fecha Inicio</div>
        <div class="col-md-2 col-sm-2 col-6 text-right align-items-center d-flex"><input type='date' class="form-control form-control-sm" id="fecha_inicio" name='fecha_inicio' min="<?php echo e(Carbon\Carbon::now()->format('Y-01-01')); ?>" max="<?php echo e(Carbon\Carbon::now()->format('Y-12-31')); ?>" /></div>
        
        <div class="col-6 d-flex d-sm-none text-center">Fecha Termino</div>
        <div class="col-md-2 col-sm-2 col-6 text-right align-items-center d-flex"><input type='date' class="form-control form-control-sm" id='fecha_final' name='fecha_final' min="<?php echo e(Carbon\Carbon::now()->format('Y-01-01')); ?>" max="<?php echo e(Carbon\Carbon::now()->format('Y-12-31')); ?>" /></div>
        
        <div class="col-6 d-flex d-sm-none text-center">Ampliación</div>
        <div class="col-md-2 col-sm-2 col-6 text-right align-items-center d-flex">
          <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 ampliacion" placeholder="0.00" id='nuevo_ampliacion' />
          </div>
        </div>
      </div>
    </div>
  </div>

</div>
<?php /**PATH /home6/itzitacu/public_html/poa/laravel/resources/views/adecuacion/interna/temp_formulario.blade.php ENDPATH**/ ?>