<div class="modal" id="modalVenta" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="editVentaLabel" aria-hidden="true">
  <div class="modal-dialog modal-xl" role="document">
    <input type="hidden" id="tipo-venta" value="<?php echo !empty($tipo_venta) ? $tipo_venta : 1;?>">
    <div class="modal-content">
      <div class="modal-wait">
        <div class="modal-header">
          <h5 class="modal-title" id="editVentaLabel">Editar</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <?php
            $this->load->view('ventas/form');
          ?>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-danger mr-auto" id="eliminarVenta">Eliminar</button>
          <button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
          <button type="button" class="btn btn-primary" id="editarVenta">Editar</button>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="modal fade" id="modalBoleta" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="sendBoleta" aria-hidden="true">
  <div class="modal-dialog modal-xl" role="document">
    <div class="modal-content">
      <div class="modal-wait">
        <div class="modal-header">
          <h5 class="modal-title" id="editVentaLabel">Enviar Boleta</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <?php
            $this->load->view('ventas/boleta');
          ?>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
          <button type="button" class="btn btn-primary" id="enviarBoleta">Enviar</button>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="modal fade" id="modalEncuesta" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="sendEncuesta" aria-hidden="true">
  <div class="modal-dialog modal-xl" role="document">
    <div class="modal-content">
      <div class="modal-wait">
        <div class="modal-header">
          <h5 class="modal-title" id="editVentaLabel">Enviar Encuesta</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <?php
            $this->load->view('ventas/encuesta');
          ?>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
          <button type="button" class="btn btn-primary" id="enviarEncuesta">Enviar</button>
        </div>
      </div>
    </div>
  </div>
</div>