<div class="col-lg-12">
    <div class="row">
        <?php
        foreach ($data as $d) {
        ?>
            <div class="col-xxl-4 col-md-4">
                <div class="card info-card sales-card">
                    <div class="card-body">
                        <br>
                        <table class="table table-sm table-bordered">
                            <thead>
                                <tr class="table-warning">
                                    <th colspan="4" style='text-align: left;'><?= $d['sku']; ?> - <?= $d['barang']; ?></th>
                                </tr>
                                <tr class="table-warning">
                                    <th colspan="4" style='text-align: Left;'>Doc : <?= $d['doc_num']; ?></th>
                                </tr>
                                <tr class="table-warning">
                                    <th style='text-align: center;'>LOT</th>
                                    <th style='text-align: center;'>KIRIM</th>
                                    <th style='text-align: center;'>VOID</th>
                                    <th style='text-align: center;'>Selisih</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td style='text-align: center;' data-bs-toggle="modal" data-bs-target="#f_lot" onclick="tampillot(<?= $d['id']; ?>)">
                                        <a href="#"><?= $d['jml_lot']; ?></a>
                                    </td>
                                    <td style='text-align: center;'>
                                        <?= $d['kirim']; ?>
                                    </td>
                                    <td style='text-align: center;'>
                                        <?= $d['void']; ?>
                                    </td>
                                    <td style='text-align: center;'>
                                        <?= (($d['kirim'] + $d['void']) - $d['jml_lot']); ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4"><input type="number" class="form-control" id="qty_kirim<?= $d['id']; ?>" placeholder="Qty"></td>
                                </tr>
                                <tr>
                                    <td colspan="4"><textarea class="form-control" id="keterangan<?= $d['id']; ?>" placeholder="Keterangan"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="4"><button onclick="kirim_fg(<?= $d['id']; ?>,<?= $d['jml_lot']; ?>,<?= $d['kirim']; ?>,<?= $d['void']; ?>)" type="button" id="btnview" class="btn btn-warning form-control" type="button"><i class="bi bi-truck"></i>&nbsp;Kirim ke gudang</button></td>
                                </tr>
                                <tr>
                                    <td colspan="4"><button onclick="void_fg(<?= $d['id']; ?>,<?= $d['jml_lot']; ?>,<?= $d['kirim']; ?>,<?= $d['void']; ?>)" type="button" id="btnview" class="btn btn-secondary form-control" type="button"><i class="bi bi-exclamation-diamond"></i>&nbsp;Void</button></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        <?php
        }
        ?>
    </div>
</div>