<div class="card-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
    <h3 class="title modal-title"></h3>
</div>
<form action="">
    <input type="hidden" name="id" value="<?= isset($data) ? md5($data->id_pi_trx) : '' ?>">
    <div class="card-body">
        <div class="row">
            <div class="col-md-6">
                <div class="mb-2">
                    <h6><b>Aspek Kinerja</b></h6>
                </div>
                <div class="form-group">
                    <label for="obyektives" class="form-label">Obyektif <span class="text-danger">*</span></label>
                    <select name="obyektives" id="obyektives" class="form-control" style="width: 100%;" <?= isset($data) ? "disabled" : '' ?> required>
                    <?= isset($data) ? "<option id=\"$data->id_object\" selected>$data->nm_object</option>" : '' ?>
                    </select>
                </div>
                <div class="form-group">
                    <label for="performIndicator" class="form-label">Performa Indikator <span class="text-danger">*</span></label>
                    <textarea name="performIndicator" id="performIndicator" class="form-control" rows=6 required><?= isset($data) ? $data->nm_aspek_kinerja : '' ?></textarea>
                </div>
                <div class="form-group">
                    <label for="target" class="form-label">Target <span class="text-danger">*</span></label>
                    <input name="target" id="target" class="form-control" value="<?= isset($data) ? $data->target : '' ?>" required>
                </div>
                <div class="form-group">
                    <label for="bobot" class="form-label">Bobot (%)<span class="text-danger">*</span></label>
                    <input name="bobot" id="bobot" class="form-control number" value="<?= isset($data) ? $data->bobot : '' ?>" required>
                </div>
            </div>
            <div class="col-md-6">
                <div class="mb-2">
                    <h6><b>Skor</b></h6>
                </div>
                <div class="form-group">
                    <label for="skor1" class="form-label">Skor 1</label>
                    <input name="skor1" id="skor1" class="form-control" value="<?= isset($data) ? $data->poin_1 : '' ?>">
                </div>
                <div class="form-group">
                    <label for="skor2" class="form-label">Skor 2</label>
                    <input name="skor2" id="skor2" class="form-control" value="<?= isset($data) ? $data->poin_2 : '' ?>">
                </div>
                <div class="form-group">
                    <label for="skor3" class="form-label">Skor 3</label>
                    <input name="skor3" id="skor3" class="form-control" value="<?= isset($data) ? $data->poin_3 : '' ?>">
                </div>
                <div class="form-group">
                    <label for="skor4" class="form-label">Skor 4</label>
                    <input name="skor4" id="skor4" class="form-control" value="<?= isset($data) ? $data->poin_4 : '' ?>">
                </div>
                <div class="form-group">
                    <label for="skor5" class="form-label">Skor 5</label>
                    <input name="skor5" id="skor5" class="form-control" value="<?= isset($data) ? $data->poin_5 : '' ?>">
                </div>
            </div>
        </div>
    </div>
    <div class="card-footer">
        <div class="row">
            <div class="col-md-7 text-left">
                <div id="message"></div>
            </div>
            <div class="col-md-5 text-right">
                <button type="button" id="btn_new_input" class="btn" style="display:none">TAMBAH BARU</button>
                <button class="btn_save ladda-button" data-style="expand-left"></button>
            </div>
        </div><!-- ./row -->
    </div>
</form>