<?= $this->extend('templates/index'); ?>
<?= $this->section('content'); ?>

<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col">
                <div class="card">
                    <div class="card-header">
                        <a class="btn btn-primary" href="<?= base_url('manajemen_pengguna/tambah_data/personil'); ?>">Tambah Data</a>
                    </div>
                <!-- /.card-header -->
                    <div class="card-body">
                        <table class="table table-bordered">
                            <thead>
                                <tr class="text-center">
                                    <th style="width: 10px">No.</th>
                                    <th>Aksi</th>
                                    <th>Nama</th>
                                    <th>Email</th>
                                    <th style="width: 40px">No.&nbsp;Telp</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php //dd($data) ?>
                                <?php foreach($data as $key => $r) : ?>
                                    <tr>
                                        <td class="text-center">1.</td>
                                        <td class="text-center">
                                            <?= aksi_button(['Edit'], ["manajemen_pengguna/edit/personil/".$r['id']]); ?>
                                        </td>
                                        <td>
                                            <?= $r['nama']; ?>
                                        </td>
                                        <td><?= $r['email']; ?></td>
                                        <td><?= $r['nomor_telepon']; ?></td>
                                    </tr>
                                <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                <!-- /.card-body -->
                <div class="card-footer clearfix">
                    <ul class="pagination pagination-sm m-0 float-right">
                    <li class="page-item"><a class="page-link" href="#">&laquo;</a></li>
                    <li class="page-item"><a class="page-link" href="#">1</a></li>
                    <li class="page-item"><a class="page-link" href="#">2</a></li>
                    <li class="page-item"><a class="page-link" href="#">3</a></li>
                    <li class="page-item"><a class="page-link" href="#">&raquo;</a></li>
                    </ul>
                </div>
                </div>
            </div>
        </div>
    </div>
</section>

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