<div class="col-12">
    <div class="card">
        <div class="p-2">
            <form action="">
                <div class="row d-flex align-items-center">
                    <!-- Top Row -->
                    <div class="col-md-3 ">
                        <label class="form-label text-dark fw-semibold mb-1">Date From</label>
                        <div class="input-group">
                            <input type="date" class="form-control bg-light" name="start_date" value="<?php echo e(@$search_start_date); ?>" placeholder="Select date">

                        </div>
                    </div>
                    <div class="col-md-3 ">
                        <label class="form-label text-dark fw-semibold mb-1">To</label>
                        <div class="input-group">
                            <input type="date" class="form-control bg-light" name="end_date" value="<?php echo e(@$search_end_date); ?>" placeholder="Select date">

                        </div>
                    </div>
                    <div class="col-md-3 ">
                        <label class="form-label text-dark fw-semibold mb-1">Endoscopist</label>
                        <div class="input-group">
                            <select name="endoscopist" id="endoscopist" class="form-select bg-light">
                                <option value="">Select</option>
                                <?php $__currentLoopData = $doctors ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $doctor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e(@$doctor['id']); ?>" <?php echo e(@$doctor['id'] == @$search_endoscopist ? 'selected' : ''); ?>>
                                        <?php echo e(@$doctor['user_prefix']); ?> <?php echo e(@$doctor['user_firstname']); ?> <?php echo e(@$doctor['user_lastname']); ?>

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

                        </div>
                    </div>
                    <div class="col-md-3 mt-4 d-flex flex-column ">
                        <button type="submit" name="submit" class="btn btn-primary d-flex align-items-center justify-content-center ">
                            <i class="mdi mdi-magnify"></i>
                            <span>Search</span>
                        </button>
                    </div>
                </div>
                <div class="row d-flex align-items-center">
                    <!-- Bottom Row -->
                    <div class="col-md-3 ">
                        <label class="form-label text-dark fw-semibold ">Province</label>
                        <div class="input-group">
                            <select name="province" id="province" class="form-select bg-light">
                                <option value="">Select</option>
                                <?php $__currentLoopData = $provinces; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $province): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($key); ?>" <?php echo e($key == @$search_province ? 'selected' : ''); ?>><?php echo e($province); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>

                        </div>
                    </div>
                    <div class="col-md-6 ">
                        <label class="form-label text-dark fw-semibold ">Hospital</label>
                        <div class="input-group">
                            <select class="form-select bg-light" name="hospital">
                                <option value="All">Select</option>
                                <?php $__currentLoopData = $department_hospital; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $hospital): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e(@$hospital['department_name']); ?>" <?php echo e($hospital['department_name'] == @$search_hospital ? 'selected' : ''); ?>><?php echo e(@$hospital['department_name']); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>

                        </div>
                    </div>
                    <div class="col-3 mt-4">
                        <a href="<?php echo e(url("allanalysis")); ?>" class="btn btn-warning d-flex align-items-center justify-content-center">
                            <i class="mdi mdi-delete"></i>
                            <span>Clear</span>
                        </a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script>
    $(document).ready(function() {
        // Initialize select2 for all select elements
        $('#endoscopist, #province, select[name="hospital"]').select2({
            placeholder: "Select",
            allowClear: true,
            width: '100%'
        });
    });
</script>
<?php /**PATH D:\laragon\htdocs\screening\resources\views/allanalysis/06_searchcase.blade.php ENDPATH**/ ?>