<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Laporan Arisan Heboh Kelompok <?= $arisan['nm_kelompok'] ?> - Undian <?= $jadwal['undian_ke'] ?></title>
    <style>
        hr {
            display: block;
            margin-top: 0.1em;
            margin-bottom: 0.5em;
            margin-left: auto;
            margin-right: auto;
            border-style: double;
            border-width: 2px;
        }

        table,
        th,
        td {
            padding: 8px 10px;
        }
    </style>
    <style>
        .sidebar.toggled .nav-item .collapse {
            position: relative;
            padding-left: 1rem;
            left: 0;
            z-index: 1;
            top: 0;
        }

        .sidebar.toggled {
            width: 60vw !important;
            transition: all .3s ease-in-out;
            -webkit-transition: all .3s ease-in-out;
        }
    </style>
    <style>
        .responsive img {
            max-width: 50%;
            align-content: center;
            /*width:100%;*/
            height: auto;
        }
    </style>
</head>

<body>
    <div class="row">
        <div class="col-lg-12 grid-margin stretch-card">
            <div class="card">
                <div class="row">
                    <div class="col-lg-10 offset-lg-1">
                        <div class="card-body">
                            <div class="row">
                                <table>
                                    <tr>
                                        <th><img src="<?= base_url('assets/') ?>img/arisan3.png" width="50%"
                                                alt="avatar">
                                        </th>
                                        <th>
                                            <a style="font-size: 12px;">LAPORAN ARISAN HEBOH</a><br>
                                            <a style="font-size: 24px;">KELOMPOK ARISAN <?= $arisan['nm_kelompok'] ?> -
                                                UNDIAN <?= $jadwal['undian_ke'] ?></a><br>
                                            <a style="font-size: 12px;">Jl. Raya Pati - Kudus No.39, Area Sawah, Ds.
                                                Klaling, Kec. Jekulo,</a><br>
                                            <a style="font-size: 12px;">Kab. Kudus - Jawa Tengah, Kode Pos :
                                                59382</a><br>
                                            <a style="font-size: 12px;">Telepon : 085162800600 || website :
                                                kspbinaartha.com
                                            </a><br>
                                        </th>
                                    </tr>
                                </table>
                            </div>
                            <hr class="mb-4">
                            <table>
                                <tr>
                                    <th style="font-weight: normal; text-align: left;">
                                        <a>Nomor Laporan</a><br>
                                        <a>Tanggal</a><br>
                                        <a>Undian</a><br>
                                        <a>Pemenang</a>
                                    </th>
                                    <th style="font-weight: normal; text-align: center;">
                                        <a>:</a><br>
                                        <a>:</a><br>
                                        <a>:</a><br>
                                        <a>:</a>
                                    </th>
                                    <th style="font-weight: normal; text-align: left;">
                                        <a><?= $kd_laporan ?></a><br>
                                        <a><?= $this->mycustom->hariIndo(date('l', strtotime($jadwal['tgl_undian']))) ?>,
                                            <?= date('d', strtotime($jadwal['tgl_undian']))  ?>
                                            <?= $this->mycustom->bulanIndo(date('m', strtotime($jadwal['tgl_undian'])))  ?>
                                            <?= date('Y', strtotime($jadwal['tgl_undian']))  ?></a><br>
                                        <a><?= $jadwal['undian_ke'] ?></a><br>
                                        <a><?= $anggota['kd_anggota'] ?> - <?= $anggota['nm_anggota'] ?></a>
                                    </th>
                                </tr>
                            </table>
                            <hr class="mb-4">
                            <center>
                                <a style="font-size: 20px; font-weight: bold;">LAPORAN ARISAN HEBOH</a><br>
                            </center>
                            <table>
                                <tr>
                                    <th style="text-align: left; font-weight: normal;">
                                        <a style="font-weight: bold;">A. KAS KELOMPOK</a><br><br>
                                        <a>Kas Bulan
                                            <?= $this->mycustom->bulanIndo(date('m', strtotime(date('m', strtotime('-1 month', strtotime($jadwal['tgl_undian']))))));  ?></a><br>
                                        <a>Kas Masuk
                                            <?= $this->mycustom->bulanIndo(date('m', strtotime($jadwal['tgl_undian'])))  ?></a><br>
                                        <a>Dana Pemenang</a><br>
                                        <a>Fee Admin</a><br>
                                        <a>Kas Total</a>
                                    </th>
                                    <th style="text-align: left; font-weight: normal;">
                                        <a></a><br><br>
                                        <a>: Rp</a><br>
                                        <a>: Rp</a><br>
                                        <a>: Rp</a><br>
                                        <a>: Rp</a><br>
                                        <a>: Rp</a>
                                    </th>
                                    <th style="text-align: right; font-weight: normal;">
                                        <a></a><br><br>
                                        <a><?= number_format(($laporan['saldo_awal']), 0, ',', '.') ?>,-</a><br>
                                        <a><?= number_format(($laporan['saldo_masuk']), 0, ',', '.') ?>,-</a><br>
                                        <a><?= number_format(($laporan['saldo_pemenang']), 0, ',', '.') ?>,-</a><br>
                                        <a><?= number_format(($laporan['administrasi']), 0, ',', '.') ?>,-</a><br>
                                        <a><?= number_format(($laporan['saldo_akhir']), 0, ',', '.') ?>,-</a>
                                    </th>
                                </tr>
                                <tr>
                                    <th style="text-align: left; font-weight: normal;">
                                        <a style="font-weight: bold;">B. PENDAPATAN KELOMPOK</a><br><br>
                                        <a>Total Pendapatan</a><br>
                                        <a>Diterima Pemenang</a><br>
                                        <a>Total Tunggakan</a>
                                    </th>
                                    <th style="text-align: left; font-weight: normal;">
                                        <a></a><br><br>
                                        <a>: Rp</a><br>
                                        <a>: Rp</a>
                                    </th>
                                    <th style="text-align: right; font-weight: normal;">
                                        <a></a><br><br>
                                        <a><?= number_format(($laporan['administrasi']), 0, ',', '.') ?>,-</a><br>
                                        <a><?= number_format(($laporan['saldo_pemenang'] - $laporan['administrasi']), 0, ',', '.') ?>,-</a><br>
                                        <a><?= number_format(($laporan['jml_tunggakan'] * $arisan['tagihan_iuran']), 0, ',', '.') ?>,-</a>
                                    </th>
                                </tr>
                                <tr>
                                    <th style="text-align: left; font-weight: normal;">
                                        <a style="font-weight: bold;">C. LAIN-LAIN</a><br><br>
                                        <a>Total Anggota</a><br>
                                        <a>Total Aktif</a><br>
                                        <a>Total Mundur</a><br>
                                        <a>Total Menang</a><br>
                                        <a>Tunggakan Bulan Ini</a><br>
                                        <a>Akumulasi Tunggakan</a>
                                    </th>
                                    <th style="text-align: center; font-weight: normal;">
                                        <a></a><br><br>
                                        <a>:</a><br>
                                        <a>:</a><br>
                                        <a>:</a><br>
                                        <a>:</a><br>
                                        <a>:</a>
                                    </th>
                                    <th style="text-align: right; font-weight: normal;">
                                        <a></a><br><br>
                                        <a><?= $arisan['target_anggota'] ?> Anggota</a><br>
                                        <a><?= $aktif ?> Anggota</a><br>
                                        <a><?= $mundur ?> Anggota</a><br>
                                        <a><?= $menang ?> Anggota</a><br>
                                        <a><?= $laporan['jml_tunggakan'] ?> Anggota</a><br>
                                        <a><?= $laporan['akum_tunggakan'] ?> Anggota</a>
                                    </th>
                                </tr>
                            </table>
                            <center>
                                <table>
                                    <tr>
                                        <th style="font-weight: normal; text-align: left;">
                                            <a></a><br>
                                            <a>Kudus,
                                                <?= date('d', strtotime($laporan['tgl_laporan']))  ?>
                                                <?= $this->mycustom->bulanIndo(date('m', strtotime($laporan['tgl_laporan'])))  ?>
                                                <?= date('Y', strtotime($laporan['tgl_laporan']))  ?><br>
                                                <a></a><br>
                                                <a></a>
                                        </th>
                                    </tr>
                                    <tr>
                                        <td style="text-align: center;">Petugas Arisan,</td>
                                        <td style="text-align: center;">Bagian Keuangan,</td>
                                        <td></td>
                                        <td style="text-align: center;">Manajer,</td>
                                        <td></td>
                                        <td style="text-align: center;">Pengurus</td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: center;">( <?= $petugas['nm_panggilan'] ?> )</td>
                                        <td style="text-align: center;">( David Candra Kurniawan )</td>
                                        <td></td>
                                        <td style="text-align: center;">( Arief Rahman )</td>
                                        <td></td>
                                        <td style="text-align: center;">( T Suwito )</td>
                                    </tr>
                                </table>
                            </center>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>


</html>