<div class="form-group row">
    <label class="col-sm-3 control-label">
        <dt><?php echo e(__('Background')); ?></dt>
    </label>
    <div class="col-sm-8">
        <div class="row form-group">
            <label class="col-md-12 control-label"><?php echo e(__('Type')); ?></label>
            <div class="col-sm-12">
                <select type="text" required class="form-control crequired select3 background_type" name="background_type">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = \Modules\CMS\Service\Homepage::backgroundOptions(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option <?php echo e($component && $component->background_type == $key ? 'selected' : ''); ?>

                            value="<?php echo e($key); ?>"><?php echo e($value); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </select>
            </div>
        </div>
        <div class="row background-image-cats <?php echo e((empty($component->background_type) || $component->background_type == 'backgroundImage') ? '' : 'd-none'); ?>">
            <?php $rand = uniqid(); ?>
            <div class="col-md-6">
                <div class="form-group row form-parent parent-class">
                    <label class="col-sm-12 control-label"><?php echo e(__('Image (Light Mode)')); ?></label>
                    <div class="col-sm-12">
                        <div class="custom-file media-manager" data-name="main_bg_image_light" data-val="single"
                            id="image-status">
                            <input class="custom-file-input form-control d-none inputFieldDesign" name="main_bg_image_light"
                                id="validatedCustomFile<?php echo e($rand); ?>" maxlength="50" accept="image/*">
                            <label class="custom-file-label overflow_hidden position-relative d-flex align-items-center"
                                for="validatedCustomFile<?php echo e($rand); ?>"><?php echo e(__('Upload image')); ?></label>
                        </div>
                        <div class="preview-image">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($component && $component->main_bg_image_light): ?>
                                <div class="d-flex flex-wrap mt-2">
                                    <div
                                        class="position-relative border boder-1 media-box p-1 mr-2 rounded mt-2">
                                        <div
                                            class="position-absolute rounded-circle text-center img-remove-icon">
                                            <i class="fa fa-times"></i>
                                        </div>
                                        <img class="upl-img" class="p-1"
                                            src="<?php echo e(pathToUrl($component->main_bg_image_light)); ?>"
                                            alt="<?php echo e(__('Image')); ?>">
                                        <input type="hidden" name="main_bg_image_light"
                                            value="<?php echo e($component->main_bg_image_light); ?>">
                                    </div>
                                </div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group row form-parent parent-class">
                    <?php $rand = uniqid(); ?>
                    <label class="col-sm-12 control-label"><?php echo e(__('Image (Dark Mode)')); ?></label>
                    <div class="col-sm-12">
                        <div class="custom-file media-manager" data-name="main_bg_image_dark" data-val="single"
                            id="image-status">
                            <input class="custom-file-input form-control d-none inputFieldDesign" name="main_bg_image_dark"
                                id="validatedCustomFile<?php echo e($rand); ?>" maxlength="50" accept="image/*">
                            <label class="custom-file-label overflow_hidden position-relative d-flex align-items-center"
                                for="validatedCustomFile<?php echo e($rand); ?>"><?php echo e(__('Upload image')); ?></label>
                        </div>
                        <div class="preview-image">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($component && $component->main_bg_image_dark): ?>
                                <div class="d-flex flex-wrap mt-2">
                                    <div
                                        class="position-relative border boder-1 media-box p-1 mr-2 rounded mt-2">
                                        <div
                                            class="position-absolute rounded-circle text-center img-remove-icon">
                                            <i class="fa fa-times"></i>
                                        </div>
                                        <img class="upl-img" class="p-1"
                                            src="<?php echo e(pathToUrl($component->main_bg_image_dark)); ?>"
                                            alt="<?php echo e(__('Image')); ?>">
                                        <input type="hidden" name="main_bg_image_dark"
                                            value="<?php echo e($component->main_bg_image_dark); ?>">
                                    </div>
                                </div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="row background-color-cats <?php echo e($component && $component->background_type == 'backgroundColor' ? '' : 'd-none'); ?>">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-sm-12 control-label"><?php echo e(__('Background Color (Light Mode)')); ?></label>
                    <div class="col-sm-12">
                        <input type="text"
                            class="form-control demo layout-primary-color inputFieldDesign" data-control="hue" name="main_bg_color_light"
                            value="<?php echo e($component ? $component->main_bg_color_light : ''); ?>">
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-sm-12 control-label"><?php echo e(__('Background Color (Dark Mode)')); ?></label>
                    <div class="col-sm-12">
                        <input type="text"
                            class="form-control demo layout-primary-color inputFieldDesign" data-control="hue" name="main_bg_color_dark"
                            value="<?php echo e($component ? $component->main_bg_color_dark : ''); ?>">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /home/consuadmin/public_html/Modules/CMS/Resources/views/edit/sub/background.blade.php ENDPATH**/ ?>