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

    <div class="pagetitle">
        <h1>Final Check LPBJ</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="50px">#</th>
                                        <th>Kode LPBJ</th>
                                        <th>Tgl LPBJ</th>
                                        <th>Requestor</th>
                                        <th>Unit</th>
                                        <th width="80px">View</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_lpbj'] . "</td>";
                                            echo "<td>" . $d['req_name'] . "</td>";
                                            echo "<td>" . $d['unit'] . "</td>";
                                            if ($akses['dml'] == 1) {
                                                echo "<td><a href='" . base_url('Lpbj/final_check_detail?kd=') . $d['kd_lpbj'] . "' class='btn btn-primary btn-sm'><i class='bi bi-search'></i></a></td>";
                                            } else {
                                                echo "<td></td>";
                                            }
                                            echo "</tr>";
                                            $i++;
                                        }
                                        ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <!-- End Table with stripped rows -->
                    </div>
                </div>
            </div>
        </div>
    </section>
</main>