<div class="row">
    <div class="col-lg-12">
        <blockquote class="blockquote media-object">
            <div class="media">
                <div class="media-body align-self-center">
                    <?php if ($jadwal_arisan['status_undian'] == 'BELUM') : ?>
                        <?php
                        // Cek apakah anggota yang sudah bayar sudah melampaui setengah total anggota aktif
                        if ($undian_mulai == 1) : ?>
                            <button type="button" style="float: right;" class="btn btn-primary mb-2 mr-2 btn-rounded"
                                data-toggle="modal" data-target="#undian_detail">
                                Mulai Lelang
                            </button>
                        <?php endif; ?>
                    <?php endif; ?>
                    <p class="d-inline">
                        Kelompok Arisan <?= $data_arisan['ket_arisan'] ?> Ke-
                        <?= $data_arisan['nm_kelompok'] ?><br>
                        Undian/Lelang Ke
                        <?= $jadwal_arisan['undian_ke'] ?>/<?= $jadwal_arisan['lelang_ke'] ?><br>
                        <?php if ($jadwal_arisan['status_undian'] == 'BELUM') : ?>
                            <span class="badge badge-dark"> Belum Mulai </span>
                        <?php elseif ($jadwal_arisan['status_undian'] == 'PROSES') : ?>
                            <span class="badge badge-primary"> Proses Undian </span>
                        <?php else : ?>
                            <span class="badge badge-success"> Selesai </span>
                        <?php endif; ?>
                    </p>
                </div>
            </div>
            <small class="text-right">Undian : <cite title="Source Title"><?= $this->mycustom->hariIndo(date('l', strtotime($jadwal_arisan['tgl_undian']))) ?>,
                    <?= date('d', strtotime($jadwal_arisan['tgl_undian']))  ?>
                    <?= $this->mycustom->bulanIndo(date('m', strtotime($jadwal_arisan['tgl_undian'])))  ?>
                    <?= date('Y', strtotime($jadwal_arisan['tgl_undian']))  ?></cite></small>
        </blockquote>
    </div>
</div>