<div class="modal fade" id="tambahTarget" tabindex="-1" role="dialog" aria-labelledby="tambahTargetTitle"
    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="tambahTargetTitle">
                    Tambah / Update Target
                </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('kabag_marketing/data/kpi_crud'); ?>
                <input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>"
                    value="<?= $this->security->get_csrf_hash(); ?>" style="display: none">
                <div class="form-group">
                    <label for="">Pilih Marketing</label>
                    <select class="form-control" id="login_id" name="login_id" required>
                        <?php foreach ($marketing as $Marketing) : ?>
                        <option value="<?= $Marketing->login_id ?>"><?= $Marketing->nm_panggilan ?> -
                            <?= $Marketing->email ?></option>
                        <?php endforeach; ?>
                    </select>
                    <input type="text" readonly class="form-control" value="<?= $faktor['id'] ?>" id="faktor_id"
                        name="faktor_id" placeholder="Nomor Induk Kependudukan ( NIK )" required hidden>
                </div>
                <div class="form-group">
                    <label>Target per Bulan</label>
                    <input type="number" step="any" class="form-control" id="nominal" name="nominal"
                        placeholder="Masukkan Jumlah Target per Bulan Marketng" required>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-primary" data-dismiss="modal">
                    Close
                </button>
                <button type="submit" id="simpanTargetAnggota" name="simpanTargetAnggota"
                    class="btn btn-primary">Simpan</button>
            </div>
            <?php echo form_close(); ?>
        </div>
    </div>
</div>
<?php $this->load->view('manager/sistem/karyawan/script'); ?>