<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">
            <?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'] == 'file'): ?>
                    <div class="site-input-groups row">
                        <div
                            class="col-xl-4 col-lg-4 col-md-3 col-12 col-label"
                        >
                            <?php echo e(__($field['label'])); ?>

                        </div>
                        <div class="col-xl-8 col-lg-8 col-md-9 col-12">
                            <div class="wrap-custom-file <?php echo e($errors->has($field['name']) ? 'has-error' : ''); ?>">
                                <input
                                    type="<?php echo e($field['type']); ?>"
                                    name="<?php echo e($field['name']); ?>"
                                    id="<?php echo e($field['name']); ?>"
                                    value="<?php echo e(oldSetting($field['name'],$section)); ?>"
                                    accept=".jpeg, .jpg, .png"
                                />
                                <label for="<?php echo e(__($field['name'])); ?>" class="file-ok"
                                       style="background-image: url( <?php echo e(asset(oldSetting($field['name'],$section))); ?> )">
                                    <img
                                        class="upload-icon"
                                        src="<?php echo e(asset('global/materials/upload.svg')); ?>"
                                        alt=""
                                    />
                                    <span><?php echo e(__('upload') .' '.__($field['label'])); ?> </span>
                                </label>
                            </div>
                        </div>
                    </div>
                <?php elseif($field['type'] == 'dropdown'): ?>

                    <div class="site-input-groups row">
                        <label for="" class="col-sm-4 col-label"><?php echo e(__($field['label'])); ?></label>
                        <div class="col-sm-8">
                            <select name="<?php echo e($field['name']); ?>" class="form-select" id="">

                                <?php if($field['name'] == 'site_currency'): ?>
                                    <?php $__currentLoopData = $siteCurrency; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option <?php if(oldSetting($field['name'],$section) == $key): ?> selected
                                                <?php endif; ?> value="<?php echo e($key); ?>"> <?php echo e($value); ?>(<?php echo e($key); ?>)
                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>

                                <?php if($field['name'] == 'site_timezone'): ?>
                                    <?php $__currentLoopData = getTimezone(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $timezone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option <?php if(oldSetting($field['name'],$section) == $timezone['name']): ?> selected
                                                <?php endif; ?> value="<?php echo e($timezone['name']); ?>"> <?php echo e($timezone['name']); ?>

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

                                <?php if($field['name'] == 'site_referral'): ?>
                                    <?php $__currentLoopData = ['level','target']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option <?php if(oldSetting($field['name'],$section) == $type): ?> selected
                                                <?php endif; ?> value="<?php echo e($type); ?>"> <?php echo e(ucwords($type) .' '.__('Base')); ?>

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


                            </select>

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

                                <input
                                    type="<?php echo e($field['type']); ?>"
                                    name="<?php echo e($field['name']); ?>"
                                    class=" form-control <?php echo e($errors->has($field['name']) ? 'has-error' : ''); ?>"
                                    value="<?php echo e(oldSetting($field['name'],$section)); ?>"
                                />

                                <?php if($field['data'] == 'double'): ?>
                                    <span class="input-group-text"> <?php echo e(setting('site_currency','global')); ?></span>
                                <?php endif; ?>
                            </div>
                        </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/__global.blade.php ENDPATH**/ ?>