<div id="content" class="main-content">
    <div class="layout-px-spacing">
        <?= $this->session->flashdata('pesan_berhasil'); ?>
        <?= $this->session->flashdata('pesan_gagal'); ?>
        <div class="row layout-top-spacing">
            <div class="col-lg-12">
                <blockquote class="blockquote media-object">
                    <div class="media">
                        <div class="media-body align-self-center">
                            <a style="float: right;" class="btn btn-primary btn-sm" href="javascript:void(0);"
                                data-toggle="modal" data-target="#tambah_detail" style="color: white;">Tambah</a>
                            <p class="d-inline">
                                Anggota Referral Arisan
                            </p>
                        </div>
                    </div>
                    <small class="text-left"><cite
                            title="Source Title"><?= $this->mycustom->hariIndo(date('l', strtotime(date('Y-m-d')))) ?>,
                            <?= date('d', strtotime(date('Y-m-d')))  ?>
                            <?= $this->mycustom->bulanIndo(date('m', strtotime(date('Y-m-d'))))  ?>
                            <?= date('Y', strtotime(date('Y-m-d')))  ?></cite></small>
                </blockquote>
            </div>
        </div>
        <div class="row layout-spacing">
            <div class="col-lg-12">
                <div class="statbox widget box box-shadow">
                    <div class="widget-content widget-content-area">
                        <table id="style-3" class="table style-3  table-hover">
                            <thead>
                                <tr>
                                    <th class="text-center">No</th>
                                    <th class="text-center">Kode Referral</th>
                                    <th class="text-center">Nama</th>
                                    <th class="text-center">Nomor HP</th>
                                    <th class="text-center">Alamat</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $no = 1; ?>
                                <?php foreach ($anggota_referral as $Anggota_referral) : ?>
                                <tr>
                                    <td>
                                        <center><?= $no ?></center>
                                    </td>
                                    <td class="text-left">
                                        <?= $Anggota_referral->username ?>
                                    </td>
                                    <td class="text-left">
                                        <?= $Anggota_referral->nm_panggilan ?>
                                    </td>
                                    <td class="text-left">
                                        <?= $Anggota_referral->no_hp ?>
                                    </td>
                                    <td class="text-left">
                                        <?= $Anggota_referral->alamat ?>
                                    </td>
                                </tr>
                                <?php $no++; ?>
                                <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<?php $this->load->view('arisan/keloladata/referral/tambah'); ?>