<div class="col-xl-6 col-lg-12 col-md-12 col-12">
    <div class="site-card">
        <div class="site-card-header">
            <h3 class="title"><?php echo e(__($fields['title'])); ?></h3>
        </div>
        <div class="site-card-body">

            <p class="paragraph mb-4"><i icon-name="alert-triangle"></i><strong>Warning:</strong> Once you <strong>Enable</strong>
                the <strong>Maintenance Mode</strong> then you need to remember the <strong>Secret Key</strong> to turn
                back the website.</p>

            <?php echo $__env->make('backend.setting.site_setting.include.form.__open_action', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php $__currentLoopData = $fields['elements']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if($field['type'] == 'checkbox'): ?>
                    <div class="site-input-groups row">
                        <div class="col-sm-4 col-label pt-0"><?php echo e(__($field['label'])); ?>

                            <i icon-name="info" data-bs-toggle="tooltip" title=""
                            data-bs-original-title="Do not enable it unless you want the site need to be under Maintenance"></i>
                        </div>
                        <div class="col-sm-8">
                            <div class="form-switch ps-0">
                                <input class="form-check-input" type="hidden" value="0" name="<?php echo e($field['name']); ?>"/>
                                <div class="switch-field">
                                    <input
                                        type="radio"
                                        id="<?php echo e($field['name'], $key); ?>"
                                        name="<?php echo e($field['name']); ?>"
                                        value="1"
                                        <?php if(oldSetting($field['name'],$section)): ?> checked <?php endif; ?>
                                    />
                                    <label for="<?php echo e($field['name'], $key); ?>"><?php echo e(__('Enable')); ?></label>
                                    <input
                                        type="radio"
                                        id="disable-<?php echo e($field['name'], $key); ?>"
                                        name="<?php echo e($field['name']); ?>"
                                        value="0"
                                        <?php if(!oldSetting($field['name'],$section)): ?> checked <?php endif; ?>
                                    />
                                    <label for="disable-<?php echo e($field['name'], $key); ?>"><?php echo e(__('Disabled')); ?></label>
                                </div>

                            </div>
                        </div>
                    </div>
                <?php elseif($field['type'] == 'textarea'): ?>
                    <div class="site-input-groups row">
                        <div class="col-sm-4 col-label"><?php echo e(__($field['label'])); ?></div>
                        <div class="col-sm-8">
                            <textarea name="<?php echo e($field['name']); ?>"
                                      class="form-textarea  <?php if($errors->has($field['name'])): ?> has-error <?php endif; ?>"><?php echo e(oldSetting($field['name'],$section)); ?></textarea>
                        </div>
                    </div>

                <?php else: ?>
                    <div class="site-input-groups row">
                        <div class="col-sm-4 col-label"><?php echo e(__($field['label'])); ?>

                            <?php if($field['name'] == 'secret_key'): ?>
                                <i icon-name="info" data-bs-toggle="tooltip" title=""
                                   data-bs-original-title="Remember the Secret Key. Use domain/secret-key to trun back the website live"></i>
                            <?php endif; ?>
                        </div>
                        <div class="col-sm-8">
                            <input type="<?php echo e($field['type']); ?>" name="<?php echo e($field['name']); ?>"
                                   class="box-input <?php if($errors->has($field['name'])): ?> has-error <?php endif; ?>"
                                   placeholder="Label" value="<?php echo e(oldSetting($field['name'],$section)); ?>" required="">
                        </div>
                    </div>

                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php echo $__env->make('backend.setting.site_setting.include.form.__close_action', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    </div>
</div>
<?php /**PATH /home/shaniawa/public_html/resources/views/backend/setting/site_setting/include/__site_maintenance.blade.php ENDPATH**/ ?>