

<?php $__env->startSection('title'); ?>
    RIS File    
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

    <section class="content-header">
    </section>
    <!-- Small boxes (Stat box) -->
    <section class="content">

        <div class="box box-warning">
            <div class="box-header">
                <h3 class="box-title">AMR: RIS File</h3>
            </div>
            <div class="box-body">
                <div class="row">
                    <form method="GET" action="<?php echo e(route('irsx')); ?>">
                        <div class="col-sm-4 col-md-2">
                            <div class="form-group has-feedback">
                                <label>Gender:</label>
                                <select class="form-control" name="gender">
                                    <option <?php echo e(($sex == "All")? 'selected' : ''); ?> value="all">All</option>
                                    <option <?php echo e(($sex == 'M')? 'selected' : ''); ?> value="M">Male</option>
                                    <option <?php echo e(($sex == 'F')? 'selected' : ''); ?> value="F">Female</option>
                                    <option <?php echo e(($sex == 'UNK')? 'selected' : ''); ?> value="UNK">Unknown</option>
                                </select>
            
                                <?php if($errors->has('gender')): ?>
                                    <span class="text-danger">
                                        <strong><?php echo e($errors->first('gender')); ?></strong>
                                    </span>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-sm-4 col-md-2">
                            <div class="form-group has-feedback">
                                <label>Year:</label>
                                <select class="form-control" name="date">
                                    <option value="all">All</option>
                                    <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option <?php echo e(($item->year == $date)? 'selected' : ''); ?>><?php echo e($item->year); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
            
                                <?php if($errors->has('username')): ?>
                                    <span class="text-danger">
                                        <strong><?php echo e($errors->first('username')); ?></strong>
                                    </span>
                                <?php endif; ?>
                            </div>
                        </div>                        
                        <!-- /.col -->
                        <div class="col-sm-2 col-md-1" style="margin-top: 23px">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">Search</button>
                        </div>
                        <!-- /.col -->
                    </form>
                    </div>
                <div style="overflow-x:auto;">
                <table id="example1" class="table table-bordered table-striped table-responsive">
                    <thead>
                    <tr>
                        <th>COUNTRY</th>
                        <th>YEAR</th>
                        <th>SPECIMEN</th>
                        <th>PATHOGEN</th>
                        <th>GENDER</th>
                        <th>ORIGIN</th>
                        <th>AGEGROUP</th>
                        <th>ANTIBIOTIC</th>
                        <th>RESISTANT</th>
                        <th>INTERMEDIATE</th>
                        <th>NONSUSCEPTIBLE</th>
                        <th>SUSCEPTIBLE</th>
                        <th>UNKNOWN_NO_AST</th>
                        <th>UNKNOWN_NO_BREAKPOINTS</th>
                        <th>BATCHID</th>
                    </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $risx; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $risx): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td> NP </td>
                                <td><?php echo e($risx->year); ?></td>
                                <td><?php echo e($risx->specimen); ?></td>
                                <td><?php echo e($risx->pathogen); ?></td>
                                <td><?php echo e($risx->sex); ?> </td>
                                <td>UNK</td>
                                <td><?php echo e($risx->age); ?></td>
                                
                                <td> <?php echo e($risx->antibiotic); ?> </td>
                                <td>
                                    <?php if(!empty($risx->resistance)): ?>
                                    <?php echo e($risx->resistance); ?>

                                    <?php else: ?>
                                        0
                                    <?php endif; ?> 
                                </td>
                                <td>
                                    <?php if($risx->intermidiate != Null): ?>
                                    <?php echo e($risx->intermidiate); ?>

                                    <?php else: ?>
                                        0
                                    <?php endif; ?> 
                                </td>
                                <td>
                                    <?php if($risx->ns != Null): ?>
                                    <?php echo e($risx->ns); ?>

                                    <?php else: ?>
                                        0
                                    <?php endif; ?> 
                                </td>
                                <td>
                                    <?php if($risx->susceptable != Null): ?>
                                    <?php echo e($risx->susceptable); ?>

                                    <?php else: ?>
                                        0
                                    <?php endif; ?> 
                                </td>
                                <td>
                                    <?php if($risx->none != Null): ?>
                                    <?php echo e($risx->none); ?>

                                    <?php else: ?>
                                        0
                                    <?php endif; ?> 
                                </td>
                                <td> 0 </td>
                                <td> DS1 </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
                </div>
            </div>
            <!-- /.box-body -->
        </div>

    </section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\glass_report\resources\views/pages/risx.blade.php ENDPATH**/ ?>