<main id="main" class="main">

    <div class="pagetitle">
        <h1>Purchase</h1>
        <nav>
            <ol class="breadcrumb">

            </ol>
        </nav>
    </div><!-- End Page Title -->

    <section class="section">
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <br>
                        <!-- Table with stripped rows -->
                        <div class="datatable-wrapper datatable-loading no-footer sortable searchable fixed-columns">
                            <div class="row g-3">
                            </div>
                            <br>
                            <div class="datatable-container">
                                <table class="table table-sm table-bordered table-striped">
                                    <thead>
                                        <th width="35px">#</th>
                                        <th width="250px">No LPBJ</th>
                                        <th width="60px">Tgl</th>
                                        <th width="60px">Unit</th>
                                        <th width="35px">Detail</th>
                                    </thead>
                                    <tbody>
                                        <?php
                                        $i = 1;
                                        foreach ($data as $d) {
                                            echo "<tr>";
                                            echo "<td>" . $i . "</td>";
                                            echo "<td>" . $d['kd_lpbj'] . "</td>";
                                            echo "<td>" . $d['tgl'] . "</td>";
                                            echo "<td>" . $d['unit'] . "</td>";
                                            echo "<td><a href='" . base_url('purchase/dtl_purch?kd=') . $d['kd_lpbj'] . "' class='btn btn-primary btn-sm'>View&nbsp;<i class='bi bi-search'></i></a></td>";
                                            echo "</tr>";
                                            $i++;
                                        }
                                        ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <!-- End Table with stripped rows -->
                    </div>
                </div>
            </div>
        </div>
    </section>
</main>