

<?php $__env->startSection('styles'); ?>
<link rel="stylesheet" href="<?php echo e(asset(asset_path('backend/vendors/css/icon-picker.css'))); ?>" />

<link rel="stylesheet" href="<?php echo e(asset(asset_path('modules/product/css/product_create.css'))); ?>" />
<?php $__env->stopSection(); ?>

<?php $__env->startSection('mainContent'); ?>
<section class="admin-visitor-area up_st_admin_visitor">
    <div class="container-fluid p-20 white_box">
        <form action="<?php echo e(route('product.store')); ?>" method="POST" enctype="multipart/form-data" id="choice_form">
            <?php echo csrf_field(); ?>
            <div class="row justify-content-center">
                <div class="col-12">
                    <div class="box_header common_table_header">
                        <div class="main-title d-md-flex">
                            <h3 class="mb-0 mr-30 mb_xs_15px mb_sm_20px"><?php echo e(__('product.add_new_product')); ?></h3>
                        </div>
                    </div>
                </div>
            </div>

            <ul class="nav nav-tabs justify-content-end mt-sm-md-20 mb-30 grid_gap_5" role="tablist">
                <li class="nav-item">
                    <a class="nav-link active show" href="#GenaralInfo" role="tab" data-toggle="tab" id="1"
                        aria-selected="true"><?php echo e(__('product.general_information')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link show" href="#RelatedProduct" role="tab" data-toggle="tab" id="2"
                        aria-selected="false"><?php echo e(__('product.related_product')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link show" href="#UpSale" role="tab" data-toggle="tab" id="3"
                        aria-selected="false"><?php echo e(__('common.up_sale')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link show" href="#CrossSale" role="tab" data-toggle="tab" id="4"
                        aria-selected="true"><?php echo e(__('common.cross_sale')); ?></a>
                </li>

            </ul>


            <div class="tab-content">
                <div role="tabpanel" class="tab-pane fade active show" id="GenaralInfo">

                    <div class="row">
                        <div class="col-lg-8">
                            <div class="white_box pt-0 box_shadow_white mb-20 p-15">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-2 mr-30"><?php echo e(__('product.product_information')); ?></h3>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">

                                        <input type="hidden" value="1" id="product_type">

                                        <div class="primary_input">
                                            <label class="primary_input_label" for=""><?php echo e(__('common.type')); ?> <span
                                                    class="text-danger">*</span></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="product_type" id="single_prod" value="1" checked
                                                            class="active prod_type" type="radio">
                                                        <span class="checkmark"></span>
                                                    </label>
                                                    <p><?php echo e(__('product.single')); ?></p>
                                                </li>
                                                <li>
                                                    <label data-id="color_option" class="primary_checkbox d-flex mr-12">
                                                        <input name="product_type" value="2" id="variant_prod"
                                                            class="de_active prod_type" type="radio">
                                                        <span class="checkmark"></span>
                                                    </label>
                                                    <p><?php echo e(__('product.variant')); ?></p>
                                                </li>
                                            </ul>
                                        </div>

                                    </div>
                                    <div class="col-lg-6">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""> <?php echo e(__('common.name')); ?> <span
                                                    class="text-danger">*</span></label>
                                            <input class="primary_input_field" name="product_name" id="product_name"
                                                placeholder="<?php echo e(__('common.name')); ?>" type="text"
                                                value="<?php echo e(old('name')); ?>" required="1">
                                            <span class="text-danger" id="error_product_name"><?php echo e($errors->first('product_name')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-6 sku_single_div">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""> <?php echo e(__('product.product_sku')); ?>

                                                <span class="text-danger">*</span></label>
                                            <input class="primary_input_field" name="sku" id="sku_single"
                                                placeholder="<?php echo e(__('product.product_sku')); ?>" type="text" required="1">
                                            <span id="error_single_sku" class="text-danger"><?php echo e($errors->first('sku')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for="model_number">
                                                <?php echo e(__('common.model_number')); ?></label>
                                            <input class="primary_input_field" name="model_number"
                                                placeholder="<?php echo e(__('common.model_number')); ?>" type="text"
                                                value="<?php echo e(old('model_number')); ?>">
                                            <span class="text-danger"><?php echo e($errors->first('model_number')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-6" id="category_select_div">
                                        <?php echo $__env->make('product::products.components._category_list_select', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </div>
                                    <div class="col-lg-6" id="brand_select_div">
                                        <?php echo $__env->make('product::products.components._brand_list_select', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </div>
                                    <div class="col-lg-6" id="unit_select_div">
                                        <?php echo $__env->make('product::products.components._unit_list_select', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""><?php echo e(__('product.barcode_type')); ?></label>
                                            <select name="barcode_type" id="barcode_type" class="primary_select mb-15">
                                                <option disabled><?php echo e(__('product.select_barcode')); ?></option>
                                                <?php $__currentLoopData = barcodeList(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $barcode): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($barcode); ?>" <?php if($key==0): ?> selected <?php endif; ?>><?php echo e($barcode); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                            <span class="text-danger"><?php echo e($errors->first('barcode_type')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""> <?php echo e(__('product.minimum_order_qty')); ?> <span class="text-danger">*</span>
                                            </label>
                                            <input class="primary_input_field" name="minimum_order_qty"
                                                id="minimum_order_qty" value="1" type="number" min="1" step="0"
                                                required="1">
                                            <span class="text-danger" id="error_minumum_qty"><?php echo e($errors->first('minimum_order_qty')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""> <?php echo e(__('product.max_order_qty')); ?></label>
                                            <input class="primary_input_field" name="max_order_qty"
                                                type="number" min="0" step="0">
                                            <span class="text-danger"><?php echo e($errors->first('max_order_qty')); ?></span>
                                        </div>
                                    </div>

                                    <div class="col-lg-12">
                                        <div class="single_field ">
                                            <label for=""><?php echo app('translator')->get('blog.tags'); ?> (<?php echo app('translator')->get('product.comma_separated'); ?>)<span class="text-danger">*</span></label>
                                        </div>
                                        <div class="tagInput_field mb_26">
                                            <input name="tags" id="tags" class="tag-input" type="text"
                                                data-role="tagsinput" />
                                        </div>
                                        <br>
                                        <div class="suggeted_tags">
                                            <label><?php echo app('translator')->get('blog.suggested_tags'); ?></label>
                                            <div id="tag_show" class="suggested_tag_show">
                                            </div>
                                        </div>
                                        <br>
                                        <span class="text-danger" id="error_tags"></span>
                                    </div>

                                    <div class="col-lg-12 attribute_div" id="attribute_select_div">
                                        <?php echo $__env->make('product::products.components._attribute_list_select', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class=" customer_choice_options" id="customer_choice_options">

                                        </div>
                                    </div>

                                    <div class="col-lg-12 sku_combination overflow-auto">

                                    </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_physical" id="is_physical" checked value="1"
                                                            type="checkbox">
                                                        <span class="checkmark"></span>
                                                    </label>
                                                    <p><?php echo e(__('product.is_physical_product')); ?></p>
                                                    <input type="hidden" name="is_physical" value="1"
                                                        id="is_physical_prod">
                                                </li>
                                            </ul>

                                        </div>
                                    </div>
                                    <div id="phisical_shipping_div" class="col-lg-12">
                                        <div class="row">
                                            <div class="col-lg-12">
                                                <div class="primary_input mb-15">
                                                    <label class="primary_input_label" for="additional_shipping"> <?php echo e(__('product.additional_shipping_charge')); ?>

                                                    </label>
                                                    <input class="primary_input_field" name="additional_shipping"
                                                        type="number" min="0" step="<?php echo e(step_decimal()); ?>"
                                                        value="<?php echo e(old('additional_shipping')?old('additional_shipping'):0); ?>">
                                                    <span class="text-danger"><?php echo e($errors->first('additional_shipping')); ?></span>
                                                </div>
                                            </div>

                                        </div>
                                    </div>

                                    <div class="col-lg-12 digital_file_upload_div">
                                        <div class="primary_input mb-25">
                                            <label class="primary_input_label" for=""><?php echo e(__('product.program_file_upload')); ?></label>
                                            <div class="primary_file_uploader">
                                                <input class="primary-input" type="text" id="pdf_place"
                                                    placeholder="<?php echo e(__('product.upload_file')); ?>" readonly="">
                                                <button class="" type="button">
                                                    <label class="primary-btn small fix-gr-bg" for="digital_file"><?php echo e(__('product.Browse')); ?> </label>
                                                    <input type="file" class="d-none" name="digital_file"
                                                        id="digital_file">
                                                </button>
                                            </div>
                                            <span class="text-danger"><?php echo e($errors->first('documents')); ?></span>
                                        </div>
                                    </div>

                                </div>



                                <div class="row">


                                    <div class="col-lg-12">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-3 mr-30"><?php echo e(__('product.price_info_and_stock')); ?></h3>
                                        </div>
                                    </div>

                                    <?php if(!isModuleActive('MultiVendor')): ?>
                                        <div class="col-lg-12" id="stock_manage_div">
                                            <div class="primary_input mb-25">
                                                <label class="primary_input_label" for=""><?php echo e(__('Stock Manage')); ?></label>
                                                <select class="primary_select mb-25" name="stock_manage"
                                                    id="stock_manage">
                                                    <option value="1"><?php echo e(__('common.yes')); ?></option>
                                                    <option value="0" selected><?php echo e(__('common.no')); ?></option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="col-lg-6 d-none" id="single_stock_div">
                                            <div class="primary_input mb-15">
                                                <label class="primary_input_label" for="single_stock"> <?php echo e(__('product.product_stock')); ?>

                                                </label>
                                                <input class="primary_input_field" name="single_stock" id="single_stock"
                                                    type="number" min="0" step="0"
                                                    value="<?php echo e(old('single_stock')?old('single_stock'):0); ?>">
                                                <span class="text-danger"><?php echo e($errors->first('single_stock')); ?></span>
                                            </div>
                                        </div>

                                    <?php endif; ?>

                                    <div class="col-lg-12 selling_price_div">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""> <?php echo e(__('product.selling_price')); ?>

                                                <span class="text-danger">*</span></label>
                                            <input class="primary_input_field" name="selling_price" id="selling_price"
                                                placeholder="<?php echo e(__('product.selling_price')); ?>" type="number" min="0"
                                                step="<?php echo e(step_decimal()); ?>" value="0" required>
                                            <span class="text-danger" id="error_selling_price"><?php echo e($errors->first('selling_price')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-8">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""> <?php echo e(__('product.tax')); ?></label>
                                            <input class="primary_input_field" name="tax" id="tax"
                                                placeholder="<?php echo e(__('product.tax')); ?>" type="number" min="0" step="<?php echo e(step_decimal()); ?>"
                                                value="0">
                                            <span class="text-danger" id="error_tax"><?php echo e($errors->first('tax')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-4">
                                        <div class="primary_input mb-25">
                                            <label class="primary_input_label" for=""><?php echo e(__('product.tax_type')); ?></label>
                                            <select class="primary_select mb-25" name="tax_type" id="tax_type">
                                                <option value="1"><?php echo e(__('common.amount')); ?></option>
                                                <option value="0"><?php echo e(__('common.percentage')); ?></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-lg-8">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""> <?php echo e(__('product.discount')); ?>

                                            </label>
                                            <input class="primary_input_field" name="discount" id="discount"
                                                placeholder="<?php echo e(__('product.discount')); ?>" type="number" min="0"
                                                step="<?php echo e(step_decimal()); ?>" value="0">
                                            <span class="text-danger" id="error_discunt"><?php echo e($errors->first('discount')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-4">
                                        <div class="primary_input mb-25">
                                            <label class="primary_input_label" for=""><?php echo e(__('product.discount_type')); ?></label>
                                            <select class="primary_select mb-25" name="discount_type"
                                                id="discount_type">
                                                <option value="1"><?php echo e(__('common.amount')); ?></option>
                                                <option value="0"><?php echo e(__('common.percentage')); ?></option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="col-lg-12">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-3 mr-30"><?php echo e(__('common.description')); ?></h3>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input mb-15">

                                            <textarea class="summernote" name="description"></textarea>
                                        </div>
                                    </div>

                                    <div class="col-lg-12">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-3 mr-30"><?php echo e(__('product.specifications')); ?></h3>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input mb-15">

                                            <textarea class="summernote" id="specification"
                                                name="specification"></textarea>
                                        </div>
                                    </div>




                                    <div class="col-lg-12">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-3 mr-30"><?php echo e(__('common.seo_info')); ?></h3>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""> <?php echo e(__('common.meta_title')); ?></label>
                                            <input class="primary_input_field" name="meta_title"
                                                placeholder="<?php echo e(__('common.meta_title')); ?>" type="text"
                                                value="<?php echo e(old('meta_title')); ?>">
                                            <span class="text-danger"><?php echo e($errors->first('meta_title')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for="">
                                                <?php echo e(__('common.meta_description')); ?></label>
                                            <textarea class="primary_textarea height_112 meta_description"
                                                placeholder="<?php echo e(__('common.meta_description')); ?>"
                                                name="meta_description" spellcheck="false"></textarea>
                                            <span class="text-danger"><?php echo e($errors->first('meta_description')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-8">
                                        <div class="primary_input mb-25">
                                            <label class="primary_input_label" for=""><?php echo e(__('product.meta_image')); ?>

                                                (150x150)PX</label>
                                            <div class="primary_file_uploader">
                                                <input class="primary-input" type="text" id="meta_image_file"
                                                    placeholder="<?php echo e(__('common.browse_image_file')); ?>" readonly="">
                                                <button class="" type="button">
                                                    <label class="primary-btn small fix-gr-bg" for="meta_image"><?php echo e(__('product.meta_image')); ?> </label>
                                                    <input type="file" class="d-none" name="meta_image" id="meta_image" accept="image/*">
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-4">
                                        <div class="meta_img_div">
                                            <img id="MetaImgDiv"
                                                src="<?php echo e(showImage('backend/img/default.png')); ?>" alt="">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4">
                            <div class="white_box pt-0 box_shadow_white p-15">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-3 mr-30"><?php echo e(__('product.product_image_info')); ?></h3>
                                        </div>
                                    </div>
                                    <div class="col-xl-8 col-lg-12">
                                        <div class="primary_input mb-25">
                                            <label class="primary_input_label" for=""><?php echo e(__('product.thumbnail_image')); ?> (165x165)PX
                                                <span class="text-danger">*</span></label>
                                            <div class="primary_file_uploader">
                                                <input class="primary-input" type="text" id="thumbnail_image_file"
                                                    placeholder="<?php echo e(__('product.thumbnail_image')); ?>" readonly="">
                                                <button class="" type="button">
                                                    <label class="primary-btn small fix-gr-bg" for="thumbnail_image"><?php echo e(__('product.Browse')); ?> </label>
                                                    <input type="file" class="d-none" name="thumbnail_image" accept="image/*"
                                                        id="thumbnail_image" required>
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xl-4 col-lg-12">
                                        <div class="thumb_img_div">
                                            <img id="ThumbnailImg"
                                                src="<?php echo e(showImage('backend/img/default.png')); ?>" alt="">
                                        </div>
                                    </div>
                                    <span class="text-danger" id="error_thumbnail"></span>

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

                                        </div>

                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input mb-25">
                                            <label class="primary_input_label" for=""><?php echo e(__('product.galary_image')); ?>

                                                (600x545)PX</label>
                                            <div class="primary_file_uploader">
                                                <input class="primary-input" type="text" id="placeholderFileOneName"
                                                    placeholder="<?php echo e(__('product.galary_image')); ?>" readonly="">
                                                <button class="" type="button">
                                                    <label class="primary-btn small fix-gr-bg" for="galary_image"><?php echo e(__('product.Browse')); ?> </label>
                                                    <input type="file" class="d-none" name="galary_image[]" accept="image/*"
                                                        id="galary_image" multiple>
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-3 mr-30"><?php echo e(__('product.pdf_specifications')); ?></h3>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input mb-25">
                                            <label class="primary_input_label" for=""><?php echo e(__('product.pdf_specifications')); ?></label>
                                            <div class="primary_file_uploader">
                                                <input class="primary-input" type="text" id="pdf_place1"
                                                    placeholder="<?php echo e(__('product.upload_pdf')); ?>" readonly="">
                                                <button class="" type="button">
                                                    <label class="primary-btn small fix-gr-bg" for="pdf"><?php echo e(__('product.Browse')); ?> </label>
                                                    <input type="file" class="d-none" name="pdf_file" id="pdf">
                                                </button>
                                            </div>
                                            <span class="text-danger"><?php echo e($errors->first('documents')); ?></span>
                                        </div>
                                    </div>


                                    <div class="col-lg-12 shipping_title_div">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-3 mr-30"><?php echo e(__('product.product_shipping_cost')); ?></h3>
                                        </div>
                                    </div>

                                    <div class="col-lg-12 shipping_type_div" id="shipping_method_div">
                                        <?php echo $__env->make('product::products.components._shipping_method_list_select', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-3 mr-30"><?php echo e(__('product.product_videos_info')); ?></h3>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input mb-25">
                                            <label class="primary_input_label" for=""><?php echo e(__('product.video_provider')); ?></label>
                                            <select class="primary_select mb-25" name="video_provider"
                                                id="video_provider">
                                                <option value="youtube"><?php echo e(__('product.youtube')); ?></option>
                                                <option value="daily_motion"><?php echo e(__('product.daily_motion')); ?></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label" for=""> <?php echo e(__('product.video_link')); ?></label>
                                            <input class="primary_input_field" name="video_link"
                                                placeholder="<?php echo e(__('product.video_link')); ?>" type="text"
                                                value="<?php echo e(old('video_link')); ?>">
                                            <span class="text-danger"><?php echo e($errors->first('video_link')); ?></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="main-title d-flex">
                                            <h3 class="mb-3 mr-30"><?php echo e(__('product.others_info')); ?></h3>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input">
                                            <label class="primary_input_label" for=""><?php echo e(__('common.status')); ?> <span
                                                    class="text-danger">*</span></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
                                                            class="active" type="radio">
                                                        <span class="checkmark"></span>
                                                    </label>
                                                    <p><?php echo e(__('common.publish')); ?></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.pending')); ?></p>
                                                </li>
                                            </ul>
                                            <span class="text-danger" id="status_error"></span>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input">
                                            <label class="primary_input_label" for=""><?php echo e(__('common.make_Display_in_details_page')); ?> <span
                                                    class="text-danger">*</span></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="display_in_details" id="status_active" value="1"
                                                            checked class="active" type="radio">
                                                        <span class="checkmark"></span>
                                                    </label>
                                                    <p><?php echo e(__('common.up_sale')); ?></p>
                                                </li>
                                                <li>
                                                    <label data-id="color_option" class="primary_checkbox d-flex mr-12">
                                                        <input name="display_in_details" value="2" id="status_inactive"
                                                            class="de_active" type="radio">
                                                        <span class="checkmark"></span>
                                                    </label>
                                                    <p><?php echo e(__('common.cross_sale')); ?></p>
                                                </li>
                                            </ul>
                                            <span class="text-danger" id="status_error"></span>
                                        </div>
                                    </div>

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

                </div>


                <div role="tabpanel" class="tab-pane fade" id="RelatedProduct">
                    <div class="box_header common_table_header ">
                        <div class="main-title d-md-flex">
                            <h3 class="mb-0 mr-30 mb_xs_15px mb_sm_20px"><?php echo e(__('product.related_product')); ?></h3>

                        </div>
                    </div>
                    <div class="QA_section QA_section_heading_custom check_box_table">
                        <div class="QA_table">
                            <!-- table-responsive -->
                            <div class="table-responsive" id="product_list_div">
                                <table class="table">
                                    <thead>

                                        <tr>
                                            <th width="10%" scope="col">
                                                <label class="primary_checkbox d-flex ">
                                                    <input type="checkbox" id="relatedProductAll">
                                                    <span class="checkmark"></span>
                                                </label>
                                            </th>
                                            <th width="20%" scope="col"><?php echo e(__('common.name')); ?></th>
                                            <th width="15%" scope="col"><?php echo e(__('product.brand')); ?></th>
                                            <th width="10%" scope="col"><?php echo e(__('product.thumbnail')); ?></th>
                                            <th width="10%" scope="col"><?php echo e(__('product.created_at')); ?></th>
                                        </tr>
                                    </thead>
                                    <tbody id="tablecontentsrelatedProduct">
                                        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <th scope="col">
                                                <label class="primary_checkbox d-flex">
                                                    <input name="related_product[]" id="related_product_<?php echo e($key); ?>"
                                                        <?php if(isset($product) &&
                                                        @$product->relatedProducts->where('related_sale_product_id',$item->id)->first()): ?>
                                                    checked <?php endif; ?> value="<?php echo e($item->id); ?>" type="checkbox">
                                                    <span class="checkmark"></span>
                                                </label>
                                            </th>
                                            <td><?php echo e($item->product_name); ?></td>
                                            <td><?php echo e(@$item->brand->name); ?></td>
                                            <td>
                                                <div class="product_img_div">
                                                    <img class="product_list_img"
                                                        src="<?php echo e(showImage($item->thumbnail_image_source)); ?>"
                                                        alt="<?php echo e($item->product_name); ?>">
                                                </div>
                                            </td>
                                            <td><?php echo e(date(app('general_setting')->dateFormat->format, strtotime($item->created_at))); ?></td>

                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                                <div class="col-12 text-center mb-20">
                                    <button class="primary_btn_2 mt-5 text-center lodeMoreRelatedSale"><?php echo e(__('common.load_more')); ?></button>
                                </div>

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


                <div role="tabpanel" class="tab-pane fade" id="UpSale">

                    <div class="box_header common_table_header ">
                        <div class="main-title d-md-flex">
                            <h3 class="mb-0 mr-30 mb_xs_15px mb_sm_20px"><?php echo e(__('common.up_sale')); ?></h3>

                        </div>
                    </div>
                    <div class="QA_section QA_section_heading_custom check_box_table">
                        <div class="QA_table">
                            <!-- table-responsive -->
                            <div class="table-responsive" id="product_list_div">
                                <table class="table">
                                    <thead>

                                        <tr>
                                            <th width="10%" scope="col">
                                                <label class="primary_checkbox d-flex ">
                                                    <input type="checkbox" id="upSaleAll">
                                                    <span class="checkmark"></span>
                                                </label>
                                            </th>
                                            <th width="20%" scope="col"><?php echo e(__('common.name')); ?></th>
                                            <th width="15%" scope="col"><?php echo e(__('product.brand')); ?></th>
                                            <th width="10%" scope="col"><?php echo e(__('product.thumbnail')); ?></th>
                                            <th width="10%" scope="col"><?php echo e(__('product.created_at')); ?></th>
                                        </tr>
                                    </thead>
                                    <tbody id="tablecontentsupSaleAll">
                                        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <th scope="col">
                                                <label class="primary_checkbox d-flex">
                                                    <input name="up_sale[]" id="up_sale_<?php echo e($key); ?>" <?php if(isset($product) &&
                                                        @$product->upSales->where('up_sale_product_id',$item->id)->first()): ?>
                                                    checked <?php endif; ?> value="<?php echo e($item->id); ?>" type="checkbox">
                                                    <span class="checkmark"></span>
                                                </label>
                                            </th>
                                            <td><?php echo e($item->product_name); ?></td>
                                            <td><?php echo e(@$item->brand->name); ?></td>
                                            <td>
                                                <div class="product_img_div">
                                                    <img class="product_list_img"
                                                        src="<?php echo e(showImage($item->thumbnail_image_source)); ?>"
                                                        alt="<?php echo e($item->product_name); ?>">
                                                </div>

                                            </td>
                                            <td><?php echo e(date(app('general_setting')->dateFormat->format, strtotime($item->created_at))); ?></td>

                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                                <div class="col-12 text-center mb-20">
                                    <button class="primary_btn_2 mt-5 text-center lodeMoreUpSale"><?php echo e(__('common.load_more')); ?></button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


                <div role="tabpanel" class="tab-pane fade" id="CrossSale">

                    <div class="box_header common_table_header ">
                        <div class="main-title d-md-flex">
                            <h3 class="mb-0 mr-30 mb_xs_15px mb_sm_20px"><?php echo e(__('common.cross_sale')); ?></h3>

                        </div>
                    </div>
                    <div class="QA_section QA_section_heading_custom check_box_table">
                        <div class="QA_table">
                            <!-- table-responsive -->
                            <div class="table-responsive" id="product_list_div">
                                <table class="table">
                                    <thead>

                                        <tr>
                                            <th width="10%" scope="col">
                                                <label class="primary_checkbox d-flex ">
                                                    <input type="checkbox" id="crossSaleAll">
                                                    <span class="checkmark"></span>
                                                </label>
                                            </th>
                                            <th width="20%" scope="col"><?php echo e(__('common.name')); ?></th>
                                            <th width="15%" scope="col"><?php echo e(__('product.brand')); ?></th>
                                            <th width="10%" scope="col"><?php echo e(__('product.thumbnail')); ?></th>
                                            <th width="10%" scope="col"><?php echo e(__('product.created_at')); ?></th>
                                        </tr>
                                    </thead>
                                    <tbody id="tablecontentscrossSaleAll">
                                        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <th scope="col">
                                                <label class="primary_checkbox d-flex">
                                                    <input name="cross_sale[]" id="cross_sale_<?php echo e($key); ?>"
                                                        <?php if(isset($product) &&
                                                        @$product->crossSales->where('cross_sale_product_id',$item->id)->first()): ?>
                                                    checked <?php endif; ?> value="<?php echo e($item->id); ?>" type="checkbox">
                                                    <span class="checkmark"></span>
                                                </label>
                                            </th>
                                            <td><?php echo e($item->product_name); ?></td>
                                            <td><?php echo e(@$item->brand->name); ?></td>
                                            <td>
                                                <div class="product_img_div">
                                                    <img class="product_list_img"
                                                        src="<?php echo e(showImage($item->thumbnail_image_source)); ?>"
                                                        alt="<?php echo e($item->product_name); ?>">
                                                </div>
                                            </td>
                                            <td><?php echo e(date(app('general_setting')->dateFormat->format, strtotime($item->created_at))); ?></td>

                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                                <div class="col-12 text-center mb-20">
                                    <button class="primary_btn_2 mt-5 text-center lodeMoreCrossSale"><?php echo e(__('common.load_more')); ?></button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>



            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="alert alert-warning mt-30 text-center">
                        <?php echo e(__('product.save_information')); ?>

                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                    </div>
                </div>

                <input type="hidden" name="request_from" value="main_product_form">

                <div class="col-12 text-center">
                    <input type="hidden" name="save_type" id="save_type">
                    <button class="primary_btn_2 mt-5 text-center saveBtn" data-value="only_save"><i
                            class="ti-check"></i><?php echo e(__('common.save')); ?></button>

                    <?php if(isModuleActive('MultiVendor')): ?>
                    <button class="primary_btn_2 mt-5 text-center saveBtn" data-value="save_publish"><i
                            class="ti-check"></i><?php echo e(__('common.save')); ?> & <?php echo e(__('common.publish')); ?></button>
                    <?php endif; ?>
                </div>
            </div>

        </form>
    </div>
</section>

<?php echo $__env->make('product::products.components._create_category_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('product::products.components._create_brand_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('product::products.components._create_unit_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('product::products.components._create_attribute_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('product::products.components._create_shipping_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('product::products.create_script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<?php echo $__env->make('backEnd.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/penastud/public_html/gsport/Modules/Product/Resources/views/products/create.blade.php ENDPATH**/ ?>