<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" id="modal-imprimir">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header" style="border: 0px ;">
                <h5 class="modal-title">Seleccione el tipo de impresión a generar</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="text-center" v-if="documento==1 || documento==2">
                    <a href="<?= ruta_base() ?>ptv/pdf?factura=<?= $id ?>&tipo=<?= $tipo_doc ?>" class="btn btn-dark btn-sm" target="_blank">
                        <span class="btn-label">
                            <i class="fas fa-file-pdf"></i>
                        </span>
                        PDF Completo
                    </a>
                    <a href="<?= ruta_base() ?>ptv/pdfMP?factura=<?= $id ?>&tipo=<?= $tipo_doc ?>" target="_blank">
                        <button class="btn btn-dark btn-sm">
                            <span class="btn-label">
                                <i class="fas fa-file-pdf"></i>
                            </span>
                            PDF Media Página
                        </button>
                    </a>
                    <a href="<?= ruta_base() ?>ptv/pdfFMP?factura=<?= $id ?>&tipo=<?= $tipo_doc ?>" target="_blank">
                        <button class="btn btn-dark btn-sm">
                            <span class="btn-label">
                                <i class="fas fa-file-pdf"></i>
                            </span>
                            PDF Pagos
                        </button>
                    </a>
                </div>
                <div class="text-center" v-if="documento==3 || documento==4">
                    <a href="<?= ruta_base() ?>ptv/pdfpre?factura=<?= $id ?>&tipo=<?= $tipo_doc ?>" class="btn btn-dark btn-sm" target="_blank">
                        <span class="btn-label">
                            <i class="fas fa-file-pdf"></i>
                        </span>
                        Imprimir
                    </a>
                </div>
                <div class="my-3 text-center" v-if="documento==1 || documento==2">
                    <?php if (is_countable($impresoras) && count($impresoras)) : ?>
                        <?php foreach ($impresoras as $row) : ?>
                            <button class="btn btn-secondary btn-sm" @click="imprimir('<?= $row['id'] ?>')">
                                <span class="btn-label">
                                    <i class="fas fa-print"></i>
                                </span>
                                <?= $row['impresora'] ?>
                            </button>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</div>