<div class="table-responsive">
    <table class="display nowrap table table-striped table-hover dataTable">
        <thead>
            <tr>
                <th class="text-left">Referencia</th>
                <th class="text-left">Código de barras</th>
                <th class="text-left">Atributo 1</th>
                <th class="text-left">Atributo 2</th>
                <th class="text-right">Precio</th>
                <th class="text-right">Stock</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($productos_variantes as $row) : ?>
                <tr>
                    <td class="text-left"><?= $row->pv_codigo ?></td>
                    <td class="text-left text-warning">
                        <a href="<?= ruta_base() ?>productos/editar/<?= $row->pv_proid ?>">
                            <?= $row->pv_codigobarras ?>
                        </a>
                    </td>
                    <td class="text-left text-warning"><?= $row->pa_nombre ?></td>
                    <td class="text-left text-warning"><?= $row->pa_nombre ?></td>
                    <td class="text-right text-warning"><?= $row->pv_precio ?>$</td>
                    <td class="text-right text-warning"><?= $row->pv_stockfis ?></td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>
