<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row" style="margin-bottom: 10px;">
            <div class="col-md-8">
                <i class="fa fa-fw fa-calendar"></i> PROSES <b>LABORATORIUM</b>


            </div>
        </div>
        <div class="box">
            <div class="box-body">
                <?= $this->session->flashdata('message'); ?>
                <form action="<?= base_url('Laboratorium/prosesupdatelaborat'); ?>" method="post">
                <table class="table" >
                <thead>
                        <tr class="bg-blue" style="font:white;">
                            <th>No</small></th>
                            <th>Packed Name</th>
                            <th>Normal Value</th>
                            <th>Input Value</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php $no = 1;
                        foreach ($lab as $p) { ?>
                    <tr>
                        <td><?= $no ?></td>
                        <td><?= $p['Bahasa'] ?> </td>
                        <td><?= $p['Normalvalue'] ?> </td>
                        <td>
                            <input type="hidden" class="form-control" name="resultid[]" value="<?= $p['id']; ?>">
                            <input type="hidden" class="form-control" name="caseid" value="<?= $header['Case ID']; ?>">
                             <input type="hidden" class="form-control" name="mr" value="<?= $header['PatientCode']; ?>">
                            <input type="text" class="form-control" name="inputvalue[]" value="<?= $p['ResultValue']; ?>">
                        </td>
                    </tr>
                    <?php 
                    $no++;
                    } 
                    ?>
                    </tbody>
                </table>
                <button type="submit" class="btn btn-sm btn-success" style="width:100%">Update</button>
                </form>
            </div>
        </div>

    </section>
</div>