<div class="col-lg-12">
    <div class="card">
        <div class="card-header">
            <h4><?php echo e(__('message.order_settings')); ?></h4>
        </div>
        <div class="card-body">
            <div class="card">
                <?php echo e(Form::model($setting_value ?? null, ['method' => 'POST', 'route' => ['order-setting-save']])); ?>

                    <?php echo Form::hidden('id',isset($setting_value[0]) ? $setting_value[0]['id'] : NULL ); ?>

                    <div class="row">
                        <div class="col-lg-12">
                            <?php $__currentLoopData = $setting; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="card-body">
                                        <div class="row">
                                            <?php $__currentLoopData = $value; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sub_keys => $sub_value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php
                                                    $data = null;
                                                    foreach($setting_value as $v){
                                                        if($v->key == $sub_keys){
                                                        }
                                                    }
                                                    $class = 'col-md-4';
                                                    $text = 'number';
                                                    $checkbox = 'checkbox';
                                                ?>

                                                <div class="form-group col-md-12">
                                                    <div class="custom-control custom-switch custom-switch-color custom-control-inline">

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

                                                        <?php if($key == 'ORDER'): ?>
                                                        <?php echo Form::checkbox('auto_assign', 1, isset($v) ? $v->auto_assign : null, ['class' => 'custom-control-input bg-success float-right', 'id' => 'switch_one']); ?>

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

                                                    </div>
                                                </div>

                                                <?php echo e(Form::label('distance_unit', __('message.distance_unit') . ' <span class="text-danger">*</span>', ['class' => 'form-control-label ml-3'], false)); ?>

                                                <div class="form-group col-md-12 mt-2">
                                                    <div class="custom-control custom-radio custom-control-inline col-4">
                                                        <?php echo e(Form::radio('distance_unit', 'km', old('distance_unit', isset($v) ? $v->distance_unit : null) == 'km', ['class' => 'custom-control-input', 'id' => 'km_one'])); ?>

                                                        <?php echo e(Form::label('km_one', __('message.km'), ['class' => 'custom-control-label', 'for' => 'km_one'])); ?>

                                                    </div>

                                                    <div class="custom-control custom-radio custom-control-inline col-2">
                                                        <?php echo e(Form::radio('distance_unit', 'mile', old('distance_unit', isset($v) ? $v->distance_unit : null) == 'mile', ['class' => 'custom-control-input', 'id' => 'mile_one'])); ?>

                                                        <?php echo e(Form::label('mile_one', __('message.mile'), ['class' => 'custom-control-label', 'for' => 'mile_one'])); ?>

                                                    </div>
                                                </div>

                                                <div class="form-group col-md-6 mt-4">
                                                    <div class="form-group">
                                                        <?php echo e(Form::label('distance', __('message.delivery_man_distance_for_auto_assign_order') . ' (' . __('message.' . $v->distance_unit) . ') <span class="text-danger">*</span>', ['class' => 'form-control-label'], false)); ?>

                                                        <?php if($key == 'ORDER'): ?>
                                                            <input type="<?php echo e($text); ?>" name="distance" value="<?php echo e(isset($v) ? $v->distance : null); ?>" id="<?php echo e($sub_keys); ?>" class="form-control form-control-lg" placeholder="<?php echo e(str_replace('_',' ',$sub_keys)); ?>" min="0"  onKeyPress="if(this.value.length==5) return false;">
                                                        <?php endif; ?>
                                                    </div>
                                                </div>
                                                <div class="form-group col-md-12 mt-3">
                                                    <div class="custom-control custom-switch custom-switch-color custom-control-inline">
                                                        <?php echo Form::hidden('otp_verify_on_pickup_delivery', 0); ?>

                                                        <?php if($key == 'ORDER'): ?>
                                                        <?php echo Form::checkbox('otp_verify_on_pickup_delivery', 1, isset($v) ? $v->otp_verify_on_pickup_delivery : null, ['class' => 'custom-control-input bg-success float-right', 'id' => 'switch_two']); ?>

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

                                                    </div>
                                                </div>
                                                <div class="form-group col-md-12 mt-4">
                                                    <div class="custom-control custom-switch custom-switch-color custom-control-inline">
                                                        <?php echo Form::hidden('is_vehicle_in_order', 0); ?>

                                                        <?php if($key == 'ORDER'): ?>
                                                        <?php echo Form::checkbox('is_vehicle_in_order', 1, isset($v) ? $v->is_vehicle_in_order : null, ['class' => 'custom-control-input bg-success', 'id' => 'switch_button']); ?>

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

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

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

            </div>
        </div>
    </div>
</div>

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