<div class="modal fade" id="edtb<?= $idraxips_barang ?>" tabindex="-1">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="text-align: left;">
            <?php
                    $iddetail_revisi_raxips = $row['iddetail_revisi_raxips'];
                    $cariubr = mysqli_query($konek,"SELECT r.idraxips_barang_revisi,r.iddetail_revisi_raxips,b.nama_barang,r.harga_barangraxi,r.qty FROM revisi_uraianraxips_barang r INNER JOIN barang b ON r.idbarang = b.idbarang WHERE r.iddetail_revisi_raxips = '$iddetail_revisi_raxips' AND r.idraxips_barang_revisi = '$idraxips_barang'");
                    $databr = mysqli_fetch_array($cariubr);
                    // echo $databr["nama_barang"];
                ?>
            <div class="modal-header">
                <h5 class="modal-title">Edit Detail Uraian Sparepart</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
            </div>
            <form action="function/function-penawaranraxi.php?iddetail=<?php echo $row['iddetail_revisi_raxips'] ?>&nofile=<?php echo $_GET['nofile'] ?>" method="post">
                <div class="modal-body">
                    <div class="row">
                        <input type="text" class="form-control" id="" autocomplete="off" name="idrbr" value="<?= $databr["idraxips_barang_revisi"]; ?>" hidden>
                        <div class="mb-3">
                            <label class="form-label">Nama Barang</label>
                            <input type="text" class="form-control barang" id="" autocomplete="off" name="barang" value="<?= $databr["nama_barang"]; ?>">
                            <div id=""
                                class="list-group barangList w-100"
                                style="z-index:1000; display:none;"></div>
                        </div>
                        <div class="mb-3">
                            <label class="form-label">Harga Barang</label>
                            <input type="text" class="form-control hrgb rupiah" name="hbarang" value="<?= $databr["harga_barangraxi"]; ?>">
                        </div>
                        <div class="mb-3 opsib" style="display: none;" id="opsib">
                            <label class="form-label">Opsi Keterangan</label>
                            <select class="form-select pilihOpsib" name="opsie" id="pilihOpsib">
                                <option value="opsib1">Opsi 1 (Normal)</option>
                                <option value="opsib2">Opsi 2 (Nama Seal)</option>
                            </select>
                        </div>
                        <div class="kete">
                            <textarea class="form-control keteb" name="kete" id="keteb" style="display: none;height: 100px;"></textarea>
                        </div>
                        <p id="hargab"> Harga Sebelumnya :</p>
                        <div class="mb-3">
                            <label class="form-label">QTY Barang</label>
                            <input type="number" class="form-control" name="qtybarang" value="<?= $databr["qty"]; ?>">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" name="edtbarang" class="btn tmbdata">Simpan</button>
                    <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Batal</button>
                </div>
            </form>
        </div>
    </div>
</div>