<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/prosesinput/'.$this->uri->segment(3)); ?>" method="post">
                <table class="table" >
                <thead><i><small style="color:red;">*Pastikan input value sesuai dengan normal value, jika melebihi < 0.5 atau > 1.5 maka ubah sesuaikan isian</small></i>
                        <tr class="bg-blue" style="font:white;">
                            <th>No</small></th>
                            <th>Packed Name</th>
                            <th>Group</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['ResultName'] ?> <input type="hidden" name="ResultID[]" class="form-control" value="<?= $p['ResultID']; ?>">
                        <input type="hidden" name="ResultName[]" class="form-control" value="<?= $p['ResultName']; ?>"></td>
                        <td><?= $p['Group'] ?> <input type="hidden" name="Group[]" class="form-control" value="<?= $p['Group'] ?>">
                        <input type="hidden" name="CategoryID[]" class="form-control" value="<?= $p['CategoryID']; ?>"></td>
                        </td>
                        <td><?= $p['NormalValue'] ?>  <input type="hidden" name="NormalValue[]" class="form-control" value="<?= $p['NormalValue'] ?>"></td>
                        <td><input type="text" class="form-control" name="inputvalue[]" placeholder="Input Value" value="<?= $p['NormalValue'] ?> "></td>
                    </tr>
                    <?php 
                    $no++;
                    } 
                    ?>
                    </tbody>
                </table>
                <button type="submit" class="btn btn-sm btn-success" style="width:100%">SUBMIT</button>
            </div>
        </div>

    </section>
</div>