<?php if(isset($lists)): ?>
    <?php if(count($lists) > 0): ?>
        <script>
            $(document).ready(function (){
                $('#sub-mode-list').select2();

                $('#sub-mode-list').on('change',function (){
                    var subMode = $(this).val();

                    $('#sub-mode-label').addClass('error');
                    if(subMode != ""){
                        $('#sub-mode-label').removeClass('error');
                    }
                });
            });
        </script>
        <select name="sub-mode" id="sub-mode-list" style="width: 150px">
            <option value="">--Select Sub-Mode--</option>
            <?php $__currentLoopData = $lists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($list->id); ?>"><?php echo e($list->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    <?php endif; ?>
<?php endif; ?>

<?php /**PATH /home/zedarroot/public_html/edwulp/resources/views/libs/sub-modes-of-payments.blade.php ENDPATH**/ ?>