<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            Penjamin ~ <?= $id['Case ID']; ?>
         
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Vclaim</a></li>
            <li class="active">Umum</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">

        <div class="row">
            <div class="col-md-12">
                <?= $this->session->flashdata('message'); ?>
                <div class="box box-success" id="divHeadAction">
                    <div class="box-header with-border">
                        <h3 class="box-title">Edit Penjamin</h3>
                    </div>
                    <div class="box-body">

                        <form action="<?= base_url('pasien/updatePenjamin/' . $id['Case ID']); ?>" method="post">
                            <div class="row">
                                <div class="col-md-5">
                                    <label for="">Penjamin <?= $id['CompanyCode']; ?></label> <br>
                                    <select name="company" required class="teanganData " data-live-search="true">
                                        <option value="">-- Pilih Penjamin --</option>
                                        <?php
                                        foreach ($company as $cc) :
                                            if ($cc['CompanyCode'] == $id['CompanyCode']) {
                                        ?>
                                                <option selected value="<?= $cc['CompanyCode']; ?>">
                                                    <?= $cc['CompanyName']; ?>
                                                </option>
                                            <?php
                                            } else {
                                            ?>
                                                <option value="<?= $cc['CompanyCode']; ?>">
                                                    <?= $cc['CompanyName']; ?>
                                                </option>
                                        <?php
                                            }
                                        endforeach;
                                        ?>

                                    </select> <br>
                                    <button style="margin-top: 10px;" type="submit" class="btn btn-sm btn-success">UPDATE</button>
                                </div>
                            </div>
                        </form>

                    </div>

                </div>
            </div>
            <!-- -->

        </div>

    </section><!-- /.content -->
</div><!-- /.content-wrapper -->