

<?php $__env->startSection('content'); ?>
<?php 
    $ChEncryption = new \App\includes\ChEncryption;
?>
<style type="text/css">
    table{
        width: 100%;
    }
</style>


    <div class="row">
        <div class="large-12 columns">
            <div class="row">
                <div class="small-12 medium-12 large-12 columns">
                    <h4>Patient Data Review </h4>
                </div>
            </div>

            <div class="row">
                <div class="small-12 medium-12 large-12 columns">
                    <p>This screen will allow providers to review patient information and identify baselines where necessary
                    The review screen will only allow providers to modify fields such as baseline and select a provider, 
                    once the data is reviewed a record will be created in the application </p>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="small-6 medium-3 large-3 end columns">
            <a href="<?php echo e(URL::to('provider')); ?>" class="button expand">Done</a>
        </div>    
    </div>
    <div class="row">
      	<div style="overflow:show" class="small-12 medium-12 large-12 columns">
          <table width="100%">
                <thead>
                    <tr>
                        <th>Save</th>
                        <th>Test Date</th>
                        <th>plasma</th>
                        <th>rbc</th>
                        <th>baseline</th>
                        <th>fname</th>
                        <th>mname</th>
                        <th>lname</th>
                        <th>sex</th>
                        <th>DOB</th>
                        <th>phone</th> 
                    </tr>
                </thead>
		<tbody>
			<?php foreach($data as $labRecord): ?>
                        <tr>
                                <td><?php echo $labRecord[1]; ?></td>
                                <td><?php echo $labRecord[3]; ?></td>
                                <td><?php echo $labRecord[2]; ?></td>
                                <td><?php if($labRecord[4]!=1){
                                     echo '<input type="checkbox" name="baseline" id="baseline">';
                                 }else{
                                     echo '<input type="checkbox" checked="checked" name="baseline" id="baseline">';
                                 } ?></td>
                                <td><?php echo $ChEncryption->decrypt($labRecord[9],$labRecord[7],$labRecord[8]); ?></td>
                                <td><?php echo $ChEncryption->decrypt($labRecord[10],$labRecord[7],$labRecord[8]); ?></td>
                                <td><?php echo $ChEncryption->decrypt($labRecord[11],$labRecord[7],$labRecord[8]); ?></td>
                                <td><?php echo $ChEncryption->decrypt($labRecord[12],$labRecord[7],$labRecord[8]); ?></td>
                                <td><?php echo $labRecord[13]; ?></td>
                                <td><?php echo $ChEncryption->decrypt($labRecord[14],$labRecord[7],$labRecord[8]); ?></td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
                
            </table>    

      	</div>   
    </div>

    <div class="row">
        <div class="small-6 medium-3 large-3 end columns">
            <a href="<?php echo e(URL::to('patient-data/upload')); ?>" class="button expand">Done</a>
        </div>    
    </div>

    
<?php $__env->stopSection(); ?>

<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>