<?php echo e(Form::model($setting_value, ['method' => 'POST', 'route' => ['settingUpdate']])); ?>

    <?php echo e(Form::hidden('id', null, ['class' => 'form-control'])); ?>

    <?php echo e(Form::hidden('page', $page, ['class' => 'form-control'])); ?>

    <?php echo Form::hidden('register_settings','register_settings'); ?>

    <div class="row">
        <?php $__currentLoopData = $setting; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-md-12 col-sm-12 card shadow mb-10">
                <div class="card-header">
                    <h4><?php echo e($pageTitle); ?></h4>
                </div>
                <div class="card-body">
                    <div class="row">
                        <?php $__currentLoopData = $value; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sub_key => $sub_value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php
                                $data = null;
                                foreach($setting_value as $v) {
                         
                                    if ($v->key == $sub_key) {
                                        $data = $v;
                                    }
                                }
                            ?>
                            <div class="col-sm-12">
                                <div class="form-group">
                                    <?php echo e(Form::hidden('type[]', $sub_key , ['class' => 'form-control'])); ?>

                                    <?php echo e(Form::hidden('key[]', $sub_key)); ?>

                                    <?php if($key == 'register_setting'): ?>
                                        <div class="custom-switch custom-switch-color custom-control-inline">
                                            <?php echo Form::hidden('value['.$loop->index.']', 0); ?>

                                            <?php echo Form::checkbox('value['.$loop->index.']', 1, isset($data) && $data->value == 1, ['class' => 'custom-control-input bg-success float-right', 'id' => $sub_key]); ?>

                                            <?php echo Form::label($sub_key, __('message.' . $sub_key), ['class' => 'custom-control-label']); ?>

                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
<?php echo e(Form::submit(__('message.save'), ['class'=>"btn btn-md btn-primary float-md-right"])); ?>

<?php echo e(Form::close()); ?>

<?php /**PATH /www/wwwroot/mxunzo.atharvatek.com/resources/views/setting/register-setting.blade.php ENDPATH**/ ?>