<!DOCTYPE html>
<html>
<head>
    <title>Data ATK</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        table, th, td {
            border: 1px solid #000;
            padding: 5px;
        }
        th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
    <h3 style="text-align:center;">Laporan Data ATK</h3>
    <table>
        <thead>
            <tr>
                <th>No.</th>
                <th>ATK Name</th>
                <th>Brand</th>
                <th>Category</th>
                <th>Inventory</th>
                <th>Unit</th>
                <th>Location</th>
                <th>Notes</th>
                <th>Update Date</th>
            </tr>
        </thead>
        <tbody>
            <?php $i = 1; foreach ($product as $k): ?>
            <tr>
                <td><?= $i++; ?></td>
                <td><?= $k->atk_product_nama; ?></td>
                <td><?= $k->brand_categories_nama; ?></td>
                <td><?= $k->atk_categories_nama; ?></td>
                <td><?= $k->atk_product_stok; ?></td>
                <td><?= $k->uom_categories_nama; ?></td>
                <td><?= $k->inventory_location_nama; ?></td>
                <td><?= $k->atk_product_notes; ?></td>
                <td><?= date("d-m-Y H:i", strtotime($k->update_date)); ?></td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</body>
</html>
