<div class="white_box_50px box_shadow_white mb-40 min-height-430">
    <form action="POST" id="add_element_form">
        <div class="row">
            <input type="hidden" name="id" value="<?php echo e($header->id); ?>">
            <input type="hidden" id="create_header_type" value="<?php echo e($header->type); ?>">
            <?php if($type == 'category'): ?>
            <div class="col-lg-12">
                <div class="primary_input mb-25">
                    <label class="primary_input_label" for=""><?php echo e(__('common.category_list')); ?></label>
                    <select name="category[]" id="category" class="primary_select mb-15" multiple>

                        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if($category->status == 1): ?>
                                <option value="<?php echo e($category->id); ?>"><span>-></span> <?php echo e($category->name); ?></option>
                            <?php endif; ?>
                            <?php if(count($category->subCategories) > 0): ?>
                                <?php $__currentLoopData = $category->subCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('appearance::header.components._category_select_option',['subItem' => $subItem], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </select>
                    <span class="text-danger"></span>
                </div>
            </div>
            <?php elseif($type == 'slider'): ?>


            <div class="col-lg-12">
                <div class="primary_input mb-25">
                        <label class="primary_input_label"
                            for="name"><?php echo e(__('common.name')); ?> <span class="text-danger">*</span></label>
                            <input class="primary_input_field" type="text" id="name" name="name" autocomplete="off"
                        value="" placeholder="<?php echo e(__('common.name')); ?>">
                </div>
                <span class="text-danger" id="error_name"></span>
            </div>


            <div class="col-lg-12" id="slider_data_type_div">
                <div class="primary_input mb-25">
                    <label class="primary_input_label" for=""><?php echo e(__('appearance.slider_for')); ?></label>
                    <select name="data_type" id="slider_for" class="primary_select mb-15">
                        <option value="" selected disabled><?php echo e(__('common.select_one')); ?></option>
                        <option value="product"><?php echo e(__('appearance.for_product')); ?></option>
                        <option value="category"><?php echo e(__('appearance.for_category')); ?></option>
                        <option value="brand"><?php echo e(__('appearance.for_brand')); ?></option>
                        <option value="tag"><?php echo e(__('appearance.for_tag')); ?></option>
                        <option value="url"><?php echo e(__('appearance.for_url_not_support_in_mobile_app')); ?></option>
                    </select>
                    <span class="text-danger" id="error_slider_data_type"></span>
                </div>
            </div>

            <div class="col-lg-12" id="slider_for_data_div">

            </div>


            <div id="sliderImgFileDiv" class="col-lg-8">
                <div class="primary_input mb-25">
                    <label class="primary_input_label" for=""><?php echo e(__('appearance.slider_image')); ?> (660 x 365)PX <span class="text-danger">*</span></label>
                    <div class="primary_file_uploader">
                        <input class="primary-input" type="text" id="banner_image_file"
                            placeholder="<?php echo e(__('common.browse')); ?> <?php echo e(__('common.image')); ?>" readonly="">
                        <button class="" type="button">
                            <label class="primary-btn small fix-gr-bg"
                                for="slider_image"><?php echo e(__('common.browse')); ?> </label>
                            <input type="file" class="d-none" name="slider_image" id="slider_image">
                        </button>
                    </div>
                </div>

                <span class="text-danger" id="error_slider_image"></span>

            </div>
            <div class="col-lg-4">
                <div id="createSliderImgDiv">
                    <img id="MetaImgDiv"
                    src="<?php echo e(showImage('backend/img/default.png')); ?>" alt="">
                </div>

            </div>

            <div class="col-lg-12">
                <div class="primary_input">
                    <label class="primary_input_label" for=""><?php echo e(__('common.status')); ?></label>
                    <ul id="theme_nav" class="permission_list sms_list ">
                        <li>
                            <label data-id="bg_option" class="primary_checkbox d-flex mr-12">
                                <input name="status" id="status_active" value="1" checked="true" class="active"
                                    type="radio">
                                <span class="checkmark"></span>
                            </label>
                            <p><?php echo e(__('common.active')); ?></p>
                        </li>
                        <li>
                            <label data-id="color_option" class="primary_checkbox d-flex mr-12">
                                <input name="status" value="0" id="status_inactive" class="de_active" type="radio">
                                <span class="checkmark"></span>
                            </label>
                            <p><?php echo e(__('common.inactive')); ?></p>
                        </li>
                    </ul>
                    <span class="text-danger" id="status_error"></span>
                </div>
            </div>

            <div class="col-xl-12">
                <div class="primary_input">
                    <ul id="theme_nav" class="permission_list sms_list ">
                        <li>
                            <label data-id="bg_option" class="primary_checkbox d-flex mr-12">
                                <input name="is_newtab" id="is_newtab" value="1" checked type="checkbox">
                                <span class="checkmark"></span>
                            </label>
                            <p><?php echo e(__('common.open_link_in_a_new_tab')); ?></p>
                        </li>
                    </ul>
                </div>
            </div>



            <?php elseif($type == 'product'): ?>
            <div class="col-lg-12">
                <div class="primary_input mb-25">
                    <label class="primary_input_label" for=""><?php echo e(__('appearance.product_list')); ?></label>
                    <select name="product[]" id="product" class="primary_select mb-15" multiple>
                        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($product->id); ?>"><?php echo e(@$product->product->product_name); ?> <?php if(isModuleActive('MultiVendor')): ?> [<?php if($product->seller->role->type == 'seller'): ?> <?php echo e($product->seller->first_name); ?> <?php else: ?> Inhouse <?php endif; ?>] <?php endif; ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </select>
                    <span class="text-danger"></span>
                </div>
            </div>

            <?php endif; ?>


            <div class="col-xl-12 text-center">
                <button class="primary_btn_2 mt-5" id="widget_form_btn"><i
                        class="ti-check"></i><?php echo e(__('common.save')); ?>

                </button>
            </div>
        </div>
    </form>
</div>
<?php /**PATH /home/penastud/public_html/mart/Modules/Appearance/Resources/views/header/components/create_element.blade.php ENDPATH**/ ?>