<div class="modal fade" id="harianMarketing" tabindex="-1" role="dialog" aria-labelledby="harianMarketingTitle"
    aria-hidden="true">
    <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="harianMarketingTitle">
                    Detail Data Laporan
                </h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <?php echo form_open_multipart('owner/laporan_arisan/kelompok_motor/crud_detail_laporan'); ?>
                <input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>"
                    value="<?= $this->security->get_csrf_hash(); ?>" style="display: none">
                <div class="form-group">
                    <label>Kode Laporan</label>
                    <input type="text" class="form-control" id="laporan_id" name="laporan_id"
                        value="<?= $laporan['laporan_id'] ?>" required readonly>
                </div>
                <div class="form-group">
                    <label>Tanggal Laporan / Lelang Undian</label>
                    <input type="date" class="form-control" id="tgl_laporan" name="tgl_laporan"
                        value="<?= $laporan['tgl_laporan'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Pemenang Lelang</label>
                    <select class="form-control" id="regist_undian" name="regist_undian" required>
                        <option value="<?= $laporan['regist_undian'] ?>"><?= $laporan['regist_undian'] ?> -
                            <?= $laporan['nm_anggota'] ?></option>
                        <?php foreach ($data_anggota as $Anggota_bayar) : ?>
                        <option value="<?= $Anggota_bayar->regist_undian ?>"><?= $Anggota_bayar->regist_undian ?> -
                            <?= $Anggota_bayar->nm_anggota ?></option>
                        <?php endforeach; ?>
                    </select>
                    <input type="text" class="form-control" id="regist_undian_lama" name="regist_undian_lama"
                        value="<?= $laporan['regist_undian'] ?>" required hidden>
                    <input type="text" class="form-control" id="jadwal_id" name="jadwal_id"
                        value="<?= $laporan['jadwal_id'] ?>" required hidden>
                </div>
                <div class="form-group">
                    <label>Saldo Awal</label>
                    <input type="number" class="form-control" id="saldo_awal" name="saldo_awal"
                        value="<?= $laporan['saldo_awal'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Saldo Masuk</label>
                    <input type="number" class="form-control" id="saldo_masuk" name="saldo_masuk"
                        value="<?= $laporan['saldo_masuk'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Saldo Pemenang</label>
                    <input type="number" class="form-control" id="saldo_pemenang" name="saldo_pemenang"
                        value="<?= $laporan['saldo_pemenang'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Saldo Akhir</label>
                    <input type="number" class="form-control" id="saldo_akhir" name="saldo_akhir"
                        value="<?= $laporan['saldo_akhir'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Biaya Administrasi</label>
                    <input type="number" class="form-control" id="administrasi" name="administrasi"
                        value="<?= $laporan['administrasi'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Dana Kehilangan</label>
                    <input type="number" class="form-control" id="dn_kehilangan" name="dn_kehilangan"
                        value="<?= $laporan['dn_kehilangan'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Fee dealer</label>
                    <input type="number" class="form-control" id="fee_dealer" name="fee_dealer"
                        value="<?= $laporan['fee_dealer'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Saldo Lelang Awal</label>
                    <input type="number" class="form-control" id="lelang_awal" name="lelang_awal"
                        value="<?= $laporan['lelang_awal'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Saldo Lelang Masuk</label>
                    <input type="number" class="form-control" id="lelang_masuk" name="lelang_masuk"
                        value="<?= $laporan['lelang_masuk'] ?>" required>
                    <input type="number" class="form-control" id="lelang_masuk_old" name="lelang_masuk_old"
                        value="<?= $laporan['lelang_masuk'] ?>" required hidden>
                    <input type="text" class="form-control" id="document" name="document"
                        value="<?= $laporan['document'] ?>" required hidden>
                </div>
                <div class="form-group">
                    <label>Saldo Lelang Akhir</label>
                    <input type="number" class="form-control" id="saldo_lelang" name="saldo_lelang"
                        value="<?= $laporan['saldo_lelang'] ?>" required>
                </div>
                <div class="form-group">
                    <label>Jenis Penarikan Arisan</label>
                    <select class="form-control" id="jenis_penarikan" name="jenis_penarikan" required>
                        <option value="<?= $laporan['jenis_penarikan'] ?>"><?= $laporan['jenis_penarikan'] ?></option>
                        <option value="MOTOR">MOTOR</option>
                        <option value="TUNAI">TUNAI</option>
                    </select>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-primary" data-dismiss="modal">
                    Close
                </button>
                <button type="submit" id="ubahDataLaporanArisan" name="ubahDataLaporanArisan"
                    class="btn btn-primary">Update</button>
            </div>
            <?php echo form_close(); ?>
        </div>
    </div>
</div>