<?php if($pot_tetap->num_rows() > 0) {
    foreach($pot_tetap->result() as $row) {
?>
<div class="d-flex justify-content-between" id="pottetap_<?= md5($row->id_item) ?>">
    <?= $row->nm_potongan ?>
    <p class="form-control-static">Rp. <?= $row->nominal_potongan != '' ? dec_to_num($row->nominal_potongan) : '0' ?>&nbsp;
    <?php if($row->flag_persentase_gapok == '0') { ?>
        <a class="text-primary" onclick="form_update(this)"><i class="fa fa-edit"></i></a>
        <?php } ?>
    </p>
</div>
<?php } 
} ?>