<?= $this->extend('layouts/owner') ?>

<?= $this->section('content') ?>

<div class="card">

    <div class="card-header">

        <h4>Inventory</h4>

    </div>

    <div class="card-body">

        <table class="table table-bordered">

            <thead>

            <tr>

                <th>No</th>
                <th>Produk</th>
                <th>Stok</th>
                <th>Lokasi</th>
                <th>Tanggal Masuk</th>

            </tr>

            </thead>

            <tbody>

            <?php $no=1; foreach($inventories as $row): ?>

            <tr>

                <td><?= $no++ ?></td>

                <td><?= esc($row['nama_product']) ?></td>

                <td><?= $row['jumlah'] ?></td>

                <td><?= esc($row['lokasi']) ?></td>

                <td><?= $row['tanggal_masuk'] ?></td>

            </tr>

            <?php endforeach; ?>

            </tbody>

        </table>

    </div>

</div>

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