<?= $this->include('themes/_commonPartialsBs/datatables') ?>
<?= $this->include("themes/_commonPartialsBs/select2bs5") ?>
<?= $this->include('themes/_commonPartialsBs/sweetalert') ?>
<?= $this->extend('themes/vuexy/main/defaultlayout') ?>
<?= $this->section('content');  ?>

<div class="row">
    <div class="col-md-12">
        <div class="nav-tabs-shadow nav-align-top">
            <ul class="nav nav-tabs" role="tablist">
                <li class="nav-item">
                    <button type="button" class="nav-link active" role="tab" id="navs-top-align-imposicion-tab" data-bs-toggle="tab" data-bs-target="#navs-top-align-imposicion-table"><?= lang("Imposiciones.imposicionList") ?></button>
                </li>
                <li class="nav-item">
                    <button type="button" class="nav-link" role="tab" id="navs-top-align-esquema-tab" data-bs-toggle="tab" data-bs-target="#navs-top-align-esquema-table"><?= lang("Imposiciones.imposicion_esquemas") ?></button>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane fade show active" id="navs-top-align-imposicion-table">
                    <div class="col-md-12 d-flex justify-content-end">
                        <?= anchor(route_to('newImposicion'), lang('Imposiciones.btnNewImposicion'), ['class' => 'btn btn-primary float-end', "id" => "btnNewImposicion"]); ?>
                    </div>
                    <div class="col-md-12">
                        <?= view('themes/_commonPartialsBs/_alertBoxes'); ?>
                        <table id="tableOfImposiciones" class="table table-striped table-hover" style="width: 100%;">
                            <thead>
                                <tr>
                                    <th><?= lang('Imposiciones.id') ?></th>
                                    <th><?= lang('Imposiciones.ancho') ?></th>
                                    <th><?= lang('Imposiciones.alto') ?></th>
                                    <th><?= lang('Imposiciones.unidades') ?></th>
                                    <th><?= lang('Imposiciones.orientacion') ?></th>
                                    <th><?= lang('Imposiciones.maquina') ?></th>
                                    <th><?= lang('Imposiciones.etiqueta') ?></th>
                                    <th><?= lang('Imposiciones.imposicion_esquema') ?></th>
                                    <th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
                                </tr>
                            </thead>
                            <tbody>

                            </tbody>
                        </table>

                    </div>
                </div>
                <div class="tab-pane fade show" id="navs-top-align-esquema-table">
                    <div class="col-md-12 d-flex justify-content-end">
                        <?= anchor(route_to('newImposicionEsquema'), lang('Imposiciones.btnNewImposicionEsquema'), ['class' => 'btn btn-primary float-end', "id" => "btnNewImposicionEsquema"]); ?>
                    </div>
                    <div class="col-md-12">
                        <?= view("/themes/vuexy/components/tables/imposicion_esquema_table.php") ?>
                    </div>
                </div>
            </div>
        </div><!--//.col -->
    </div><!--//.row -->

    <?= $this->endSection() ?>




    <?= $this->section('css') ?>
    <link rel="stylesheet" href="<?= site_url("themes/vuexy/vendor/libs/dropzone/dropzone.css") ?>" />
    <link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/spinkit/spinkit.css') ?>" />
    <link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/notiflix/notiflix.css') ?>" />
    <link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/sweetalert2/sweetalert2.css') ?>" />
    <link rel="stylesheet" href="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/buttons/buttons.bootstrap5.min.css") ?>">
    <?= $this->endSection() ?>


    <?= $this->section('additionalExternalJs') ?>
    <script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/buttons/dataTables.buttons.min.js") ?>"></script>
    <script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/buttons/buttons.bootstrap5.min.js") ?>"></script>
    <script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/buttons/buttons.html5.min.js") ?>"></script>
    <script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/buttons/buttons.print.min.js") ?>"></script>
    <script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/jszip/jszip.min.js") ?>"></script>
    <script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/pdfmake/pdfmake.min.js") ?>" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/pdfmake/vfs_fonts.js") ?>"></script>
    <script src="<?= site_url('themes/vuexy/vendor/libs/sweetalert2/sweetalert2.js') ?>"></script>
    <script src="<?= site_url('themes/vuexy/vendor/libs/two/two.js') ?>"></script>

    <script type="module" src="<?= site_url('assets/js/safekat/pages/configuracion/imposiciones/view.js') ?>"></script>

    <?= $this->endSection() ?>