<?php
    $indication = [];
    if ($procedure->name == 'EGD') {
        $indication[] = 'GI Bleeding';
        $indication[] = 'GERD';
        $indication[] = 'Dyspepsia';
        $indication[] = 'Dysphagia';
        $indication[] = 'IDA';
        $indication[] = 'Iron Deficiency Anemia';
    }

    if ($procedure->name == 'Colonoscopy') {
        $indication[] = 'CRC screening';
        $indication[] = 'Constipation';
        $indication[] = 'Abdominal pain';
        $indication[] = 'Fit Positive';
        $indication[] = 'Rectal Bleeding';
        $indication[] = 'IBD';
        $indication[] = 'Bowel Habit Change';
        $indication[] = 'LGIB';
        $indication[] = 'Family Hx CRC';
        $indication[] = 'Diarrhea';
        $indication[] = 'Surveillance colonoscopy';
        $indication[] = 'Iron Deficiency Anemia';
    }
?>

<div class="row mt-2 ">
    <div class="col-12 d-flex align-items-center text-nowrap pb-3">
        <b>Indication</b>
    </div>
    <div class="col-12">
        <div class="row">
            <?php $__currentLoopData = isset($indication) ? $indication : []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $box): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    if (isset($case->indication)) {
                        $indicationbox = $case->indication;
                    } else {
                        $indicationbox = [];
                    }
                    $is_checked_indication = in_array($box, $indicationbox) ? 'checked' : '';
                ?>
                <div class="col-4 text-nowrap">
                    <input type="checkbox" id="indication<?php echo e($box); ?>" name="indication"
                        class="savejson_checkbox check-color form-check-input" value="<?php echo e($box); ?>"
                        <?php echo e($is_checked_indication); ?>>

                    <label for="indication<?php echo e($box); ?>">
                        &ensp; <?php echo e($box); ?>

                    </label>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</div>


<div class="col-12">
    <input class="form-control autotext savejson" name="indication_other" id="indication_other"
        placeholder="Other Indication" type="text" autocomplete="off" value="<?php echo e(@$case->indication_other); ?>" />
</div>
<?php /**PATH D:\laragon\htdocs\screening\resources\views/case/component/sub/indication.blade.php ENDPATH**/ ?>