
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
           Update Items Transaction
            <small><?= $abdulradjak['NamaPerusahaan']; ?> - <?= $abdulradjak['KodePPK']; ?></small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Vclaim</a></li>
            <li class="active">Data Pasien</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <!-- Default box -->
        <div class="box">
            <div class="box-body">
                <small>
                    <form action="<?= base_url('Transaction/UpdateTransaction/'.$this->uri->segment(3)); ?>" method="post">
                        <table class="table table-striped">
                            <tr>
                                <th colspan="4">Update Items Transaction</th>
                            </tr>
                            <tr>
                                <th>Treatment</th>
                                <th>Doctor</th>
                                <th>Harga</th>
                            </tr>
                            <tr>
                                <?php foreach($get as $a) : ?>
                                <td>
                                <select name="tindakan" class="teanganData" required data-live-search="true">
                                <option value="">-- Pilih Tindakan --</option>
                                <?php
                                    foreach ($tindakan as $d) :
                                        if ($a['Activity'] == $d['ProcedureCode']) {
                                    ?>
                                            <option selected value="<?= $d['ProcedureCode']; ?>"><?= $d['Description']; ?></option>
                                        <?php
                                        } else {
                                        ?>
                                            <option value="<?= $d['ProcedureCode']; ?>"><?= $d['Description']; ?></option>
                                    <?php
                                        }
                                    endforeach;
                                    ?>
                                </select>
                                </td>
                                <td>
                                <select name="dokter" class="form-control" required data-live-search="true">
                                <option value="">-- Pilih Dokter --</option>
                                <?php
                                    foreach ($dokter as $d) :
                                        if ($a['DoctorID'] == $d['DoctorID']) {
                                    ?>
                                            <option selected value="<?= $d['DoctorID']; ?>"><?= $d['FirstName']; ?></option>
                                        <?php
                                        } else {
                                        ?>
                                            <option value="<?= $d['DoctorID']; ?>"><?= $d['FirstName']; ?></option>
                                    <?php
                                        }
                                    endforeach;
                                    ?>
                                </select>
                                <input type="hidden" name="user" value="<?= $user['nama']; ?>">
                                </td>
                                <td>
                                <input type="text" name="harga" id="txtHarga" class="form-control" value="<?= $a['Charge'] ?>">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="6">
                                    <button type="submit" class="btn btn-sm btn-success">Update Treatment</button>
                                </td>
                            </tr>
                        </table>
                    </form>
                </small>
            </div>
        </div>
    </section>
            </div><!-- /.box-body -->
        </div><!-- /.box ->
<?php endforeach; ?>