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

<?= $this->section('content'); ?>
<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-header">
                <h4><?= $boxTitle ?></h4>
            </div>
            <div class="card-body">

                <?= view("themes/_commonPartialsBs/_alertBoxes") ?>

                <table id="tableOfAlbaranes" class="table table-striped table-hover w-100">
                    <thead>
                        <tr>
                            <th><?= lang('Albaran.id') ?></th>
                            <th><?= lang('Albaran.numAlbaran') ?></th>
                            <th><?= lang('Albaran.numEnvio')  ?></th>
                            <th><?= lang('Albaran.numPedidos') ?></th>
                            <th><?= lang('Albaran.cliente') ?></th>
                            <th><?= lang('Albaran.att')  ?></th>
                            <th><?= lang('Albaran.direccion') ?></th>
                            <th><?= lang('Albaran.unidadesTotal') ?></th>
                            <th><?= lang('Albaran.cajas')  ?></th>
                            <th><?= lang('Albaran.acciones') ?? 'Acciones' ?></th>
                        </tr>
                        <tr>
                            <th><input type="text" class="form-control albaran-filter" name="id"></th>
                            <th><input type="text" class="form-control albaran-filter" name="numero_albaran"></th>
                            <th><input type="text" class="form-control albaran-filter" name="envio_id"></th>
                            <th><input type="text" class="form-control albaran-filter-pedidos" name="pedidos"></th>
                            <th><input type="text" class="form-control albaran-filter" name="cliente"></th>
                            <th><input type="text" class="form-control albaran-filter" name="att"></th>
                            <th><input type="text" class="form-control albaran-filter" name="direccion"></th>
                            <th></th>
                            <th></th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>


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


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


<?= $this->section('css') ?>
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/sweetalert2/sweetalert2.css') ?>" />
<?= $this->endSection() ?>

<?= $this->section('additionalExternalJs') ?>
<script src="<?= site_url('themes/vuexy/vendor/libs/sweetalert2/sweetalert2.js') ?>"></script>
<script type="module" src="<?= site_url("assets/js/safekat/pages/albaranes/list.js") ?>"></script>
<?= $this->endSection() ?>