Current File : /home/tradevaly/public_html/storage/framework/views/6659db2abd1deeef6a836828d1861876015f166a.php
<?php $__env->startPush('title','Create New Product'); ?>

<?php $__env->startPush('style'); ?>
 <link href="<?php echo e(asset('/assets/libs/select2/select2.min.css')); ?>" rel="stylesheet" type="text/css" />

<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid">
  <div class="row">
    <div class="col-md-12">
      <div class="card">
        <div class="card-header card-header-icon card-header-info">
          <h4 class="card-title">EDIT PRODUCT
          </h4>
        </div>
        <div class="card-body">
          <form action="<?php echo e(route('user.editproducts', $product->id)); ?>"" method="POST" class="outer-repeater" enctype="multipart/form-data">
              <?php echo csrf_field(); ?>
                                             
            <div class="row">
                <div class="col-md-4 mb-3">
                    <div class="form-group">
                         <label class="bmd-label-floating">Select Category</label>
                            <select class="form-control select2" name="category_id" onchange="get_cat(this.value)">
                                <option disabled selected>Select Category</option>
                                <?php $__currentLoopData = $caegories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($category->id); ?>" <?php echo e($category->id == $product->category_id ? 'selected':''); ?>><?php echo e($category->name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            <?php if($errors->has('category_id')): ?>
                                <span class="text-danger"><?php echo e($errors->first('category_id')); ?></span>
                            <?php endif; ?>
                    </div>
                </div>
            
            
            
                <div class="col-md-4 mb-5">
                <div class="form-group">
                     <label class="bmd-label-floating">Select Subcategory</label>
                     <select class="form-control select2" name="sub_id" id="sub_id">
                     <option value="">Select Sub Category</option>
                     <?php $__currentLoopData = $caegories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($category->id); ?>" <?php echo e($category->id == $product->sub_id ? 'selected':''); ?>><?php echo e($category->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                     </select>
                    <?php if($errors->has('sub_id')): ?>
                        <span class="text-danger"><?php echo e($errors->first('sub_id')); ?></span>
                    <?php endif; ?>
                  </div>
                </div>
            
             <div class="col-md-4 mb-5">
                <div class="form-group">
                    <label class="bmd-label-floating">Select Child Category</label>
                    <select class="form-control select2" name="child_id" id="child_id">
                        <option value="">Select Child Category</option>
                        <?php $__currentLoopData = $caegories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($category->id); ?>" <?php echo e($category->id == $product->child_id ? 'selected':''); ?>><?php echo e($category->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                    <?php if($errors->has('child_id')): ?>
                        <span class="text-danger"><?php echo e($errors->first('child_id')); ?></span>
                    <?php endif; ?>
                </div>
            </div>
            
            
                </div>
            <div class="card-header card-header-icon card-header-info">
              <h4 class="card-title">Basic Information
              </h4>
            </div>
            <div class="row">
            
              <div class="col-md-12 mb-3">
                <div class="form-group">
                  <label class="bmd-label-floating">Product Name</label>
                  <input type="text" name="title" value="<?php echo e($product->title); ?>" class="form-control">
                  <?php if($errors->has('title')): ?>
                        <span class="text-danger"><?php echo e($errors->first('title')); ?></span>
                    <?php endif; ?>
                </div>
             </div>
              
              <div class="col-md-12 mb-3">
                        <div class="form-group">
                            <label class="bmd-label-floating">Select Tags</label>
                            <select class="form-control"  name="tags[]" id="example" multiple>
                                    <option>Select Tags</option>
                                    <?php $__currentLoopData = $tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($tag->name); ?>"><?php echo e($tag->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>
              
              <div class="col-md-12 mb-3 col-sm-6">
                  <label class="bmd-label-floating">Product Image</label>
                  <img style="width:100px; margin-bottom:20px;" src="<?php echo e(asset('storage/images/admin/product/'.$product->image.'')); ?>" alt="NO image avialable"> <br/>
                  <input type="file" id="filesz" name="image" class="form-control">
                  <?php if($errors->has('image')): ?>
                        <span class="text-danger"><?php echo e($errors->first('image')); ?></span>
                    <?php endif; ?>
                  <p>We suggest your images be less than 1000px*1000px with a clear subject to improve buyer satisfaction.</p>
              </div>
            </div>
           <div class="card-header card-header-icon card-header-info">
              <h4 class="card-title">Products Information
              </h4>
            </div>
          
                     
            
            <div class="row">
                
            <div class="col-md-4 mb-3">
                <div class="form-group">
                  <label class="bmd-label-floating">Model No.</label>
                  <input type="text" name="model_number" value="<?php echo e($product->model_number); ?>" class="form-control">
                </div>
            </div>    
                
                
                
            <div class="col-md-4 mb-3">
                <div class="form-group">
                  <label class="bmd-label-floating">Brand</label>
                  <input type="text" name="brand" value="<?php echo e($product->brand); ?>" class="form-control">
                </div>
            </div>
            
            <div class="col-md-4 mb-3">
                <div class="form-group">
                  <label class="bmd-label-floating">Material</label>
                  <input type="text" name="material" value="<?php echo e($product->material); ?>" class="form-control">
                </div>
            </div>
            
            <div class="col-md-4 mb-3">
                <div class="form-group">
                  <label class="bmd-label-floating">Brochure</label>
                  <input type="file" name="brochure"class="form-control">
                </div>
            </div>
            <div class="col-md-4 mb-3">
                <div class="form-group">
                  <label class="bmd-label-floating">Product Type</label>
                    <select class="form-select select2" name="product_type" aria-label="Default select example">
                      <option value="inquery" <?php echo e(($product->product_type =="inquery" )?"selected":''); ?>>Inquery Product</option>
                      <option value="ecommerce" <?php echo e(($product->product_type =="ecommerce" )?"selected":''); ?>>Ecommerce Product</option>
                    </select>
                </div>
            </div>
            <div class="card-header card-header-icon card-header-info">
              <h4 class="card-title">Trade Information 
              </h4>
            </div>
            <div data-repeater-list="outer-group" class="outer">
                <div data-repeater-item class="outer">
                    <div class="inner-repeater mb-4">
                        <div data-repeater-list="inner-group" class="inner mb-3">
                            <label>More Details :</label>
                            <div data-repeater-item class="inner mb-3 row">
                                <div class="col-md-5 col-8">
                                    <input type="text" name="key" value="<?php echo e($product->key); ?>" class="inner form-control" placeholder="Attribute - e.g Color"/>
                                </div>
                                <div class="col-md-5 col-8">
                                    <input type="text" name="value" value="<?php echo e($product->value); ?>" class="inner form-control" placeholder="Value - e.g Red"/>
                                </div>
                                <div class="col-md-2 col-4">
                                    <div class="d-grid">
                                        <input data-repeater-delete type="button" class="btn btn-primary inner" value="Delete"/>
                                    </div>
                                </div>
                                
                            </div>
                        </div>
                        <input data-repeater-create type="button" class="btn btn-success inner" value="Add Number"/>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-5">
                <div class="form-group">
                    <label class="bmd-label-floating">Country Of Origin</label>
                    <select class="form-control select2" name="origin">
                       <?php $__currentLoopData = \App\Models\Country::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($country->nicename); ?>" <?php echo e($country->nicename == $product->origin ? 'selected':''); ?>><?php echo e($country->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                    <?php if($errors->has('origin')): ?>
                        <span class="text-danger"><?php echo e($errors->first('origin')); ?></span>
                    <?php endif; ?>
                </div>
            </div>
            <div class="col-md-4 mb-5">
                 <div class="form-check mb-3">
                    <label for="formrow-inputCity" class="form-label">Currency</label>
                    <select class="form-control select2" name="currency">
                         <option value="">Select Currency</option>
                         <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         <option value="<?php echo e($currency); ?>"<?php echo e(($product->currency == $currency)?'selected':''); ?>> <?php echo e($currency); ?></option>
                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                     </select>
                </div>
            </div>
             
            
            <div>
                <p>If You Want to change your price Type Please click here</p>
                <a class="btn btn-success" href="<?php echo e(route("user.addPrice",$product->id)); ?>" target="_blank">
                    Click
                </a>
            </div>
            <?php if($product->price_type!=="negotiable"): ?>
            <div class="row">
                <div class="col-md-4 mb-3">
                    <div class="form-group">
                      <label class="bmd-label-floating">Price</label>
                      <input type="text" name="single_price"class="form-control" value="<?php echo e($product->price); ?>">
                    </div>
                </div>
                <div class="col-md-4 mb-3">
                    <label for="discountPrice" class="form-label">Discount Percentage </label>
                    <input type="number" class="form-control" name="discount_price" value="<?php echo e($product->discount_price); ?>" id="discountPrice" placeholder="Enter discount percentage">
                </div>
            </div>
            <?php endif; ?>
            <!--<div class="form-ew form-sm type-form">-->
            <!--    <label> Set price </label>-->
            <!--    <div class="next-form-item-control">-->
            <!--        <div class="form-check mb-3">-->
            <!--            <input type="radio" id="negotiable" <?php echo e($product->price_type == "negotiable"?'checked':''); ?> class="form-check-input" checked name="price_type" value="negotiable" onclick="show1();" />-->
            <!--            <label class="form-check-label" for="formCheck1">-->
            <!--                FOB PRICE-->
            <!--            </label>-->
            <!--        </div>-->
            <!--        <div class="form-check mb-3">-->
            <!--            <input type="radio" id="qbp" <?php echo e($product->price_type == "qbp"?'checked':''); ?> class="form-check-input" name="price_type"value="qbp" id="qbp" onclick="show2();" />-->
            <!--            <label class="form-check-label" for="formCheck1">-->
            <!--               Set quantity based on price-->
            <!--            </label>-->
            <!--        </div>-->
            <!--        <div class="form-check mb-3">-->
            <!--            <input type="radio" id="pbq" <?php echo e($product->price_type == "pbq"?'checked':''); ?> class="form-check-input" name="price_type"value="pbq" id="pbq" onclick="show3();" />-->
            <!--            <label class="form-check-label" for="formCheck1">-->
            <!--               Set price based on quantity-->
            <!--            </label>-->
            <!--        </div>-->

            <!--    </div>-->
            <!--</div>-->
            
            <!--        <div id="A">-->
            <!--      <div class="row">-->
            <!--                                    <div class="col-lg-3">-->
            <!--                                        <div class="mb-3">-->
            <!--                                            <label for="formrow-inputCity" class="form-label">Currency</label>-->
            <!--                                             <select class="form-control select2" name="currency">-->
            <!--                                                  <option value="">Select Currency</option>-->
            <!--                                                  <?php $__currentLoopData = \App\Models\Country::whereNotNull('currency')->orderBy('currency', 'asc')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>-->
            <!--                                                  <option value="<?php echo e($currency->currency); ?>" <?php if($currency->id == Auth::user()->country_id): ?> selected <?php endif; ?>><?php echo e($currency->currency); ?></option>-->
            <!--                                                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>-->
            <!--                                              </select>-->
            <!--                                        </div>-->
            <!--                                    </div>-->
            <!--                                    <div class="col-lg-3">-->
            <!--                                        <div class="mb-3">-->
            <!--                                            <label for="formrow-inputState" class="form-label">Min</label>-->
            <!--                                            <input type="text" name="min" value="<?php echo e($product->min); ?>" class="form-control" id="formrow-inputZip" placeholder="Enter Minimum">-->
            <!--                                        </div>-->
            <!--                                    </div>-->
                                                
            <!--                                    <div class="col-lg-3">-->
            <!--                                        <div class="mb-3">-->
            <!--                                            <label for="formrow-inputZip" class="form-label">Max</label>-->
            <!--                                            <input type="text" name="max" value="<?php echo e($product->max); ?>" class="form-control" id="formrow-inputZip" placeholder="Enter Maximum">-->
            <!--                                        </div>-->
            <!--                                    </div>-->
                                                
                                                
            <!--                                    <div class="col-lg-3">-->
            <!--                                        <div class="mb-3">-->
            <!--                                            <label for="formrow-inputCity" class="form-label">Unit</label>-->
            <!--                                             <select class="form-control select2" name="unit">-->
            <!--                                                  <option value="">Select Unit</option>-->
            <!--                                                  <option value="" selected="selected">-- Select Unit --</option>-->
            <!--                                                  <option value="Acre">Acre</option>-->
            <!--                                                  <option value="Ampere">Ampere</option>-->
            <!--                                                  <option value="Bag">Bag</option>-->
            <!--                                                  <option value="Barrel">Barrel</option>-->
            <!--                                                  <option value="Box">Box</option>-->
            <!--                                                  <option value="Bushel">Bushel</option>-->
            <!--                                                  <option value="Carton">Carton</option>-->
            <!--                                                  <option value="Case">Case</option>-->
            <!--                                                  <option value="Centimeter">Centimeter</option>-->
            <!--                                                  <option value="Chain">Chain</option>-->
            <!--                                                  <option value="Cubic Centimeter">Cubic Centimeter</option>-->
            <!--                                                  <option value="Cubic Foot">Cubic Foot</option>-->
            <!--                                                  <option value="Cubic Inch">Cubic Inch</option>-->
            <!--                                                  <option value="Cubic Meter">Cubic Meter</option>-->
            <!--                                                  <option value="Cubic Yard">Cubic Yard</option>-->
            <!--                                                  <option value="DEGREES Celsius">DEGREES Celsius</option>-->
            <!--                                                  <option value="Degrees Fahrenheit">Degrees Fahrenheit</option>-->
            <!--                                                  <option value="Dozen">Dozen</option>-->
            <!--                                                  <option value="Dram">Dram</option>-->
            <!--                                                  <option value="Fluid Ounce">Fluid Ounce</option>-->
            <!--                                                  <option value="Foot">Foot</option>-->
            <!--                                                  <option value="Forty-Foot Container ">Forty-Foot Container </option>-->
            <!--                                                  <option value="Furlong">Furlong</option>-->
            <!--                                                  <option value="Gallon">Gallon</option>-->
            <!--                                                  <option value="Gill">Gill</option>-->
            <!--                                                  <option value="Grain">Grain</option>-->
            <!--                                                  <option value="Gram">Gram</option>-->
            <!--                                                  <option value="Gross">Gross</option>-->
            <!--                                                  <option value="Hectare">Hectare</option>-->
            <!--                                                  <option value="Hertz">Hertz</option>-->
            <!--                                                  <option value="Inch">Inch</option>-->
            <!--                                                  <option value="Kiloampere">Kiloampere</option>-->
            <!--                                                  <option value="Kilogram">Kilogram</option>-->
            <!--                                                  <option value="Kilohertz">Kilohertz</option>-->
            <!--                                                  <option value="Kilometer">Kilometer</option>-->
            <!--                                                  <option value="Kiloohm">Kiloohm</option>-->
            <!--                                                  <option value="Kilovolt">Kilovolt</option>-->
            <!--                                                  <option value="Kilowatt">Kilowatt</option>-->
            <!--                                                  <option value="Liter">Liter</option>-->
            <!--                                                  <option value="Long Ton">Long Ton</option>-->
            <!--                                                  <option value="Megahertz">Megahertz</option>-->
            <!--                                                  <option value="Meter">Meter</option>-->
            <!--                                                  <option value="Metric Ton">Metric Ton</option>-->
            <!--                                                  <option value="Mile">Mile</option>-->
            <!--                                                  <option value="Milliampere">Milliampere</option>-->
            <!--                                                  <option value="Milligram">Milligram</option>-->
            <!--                                                  <option value="Millihertz">Millihertz</option>-->
            <!--                                                  <option value="Milliliter">Milliliter</option>-->
            <!--                                                  <option value="Millimeter">Millimeter</option>-->
            <!--                                                  <option value="Milliohm">Milliohm</option>-->
            <!--                                                  <option value="Millivolt">Millivolt</option>-->
            <!--                                                  <option value="Milliwatt">Milliwatt</option>-->
            <!--                                                  <option value="Nautical Mile">Nautical Mile</option>-->
            <!--                                                  <option value="Ohm">Ohm</option>-->
            <!--                                                  <option value="Ounce">Ounce</option>-->
            <!--                                                  <option value="Pack">Pack</option>-->
            <!--                                                  <option value="Pallet">Pallet</option>-->
            <!--                                                  <option value="Pair">Pair</option>-->
            <!--                                                  <option value="Parcel">Parcel</option>-->
            <!--                                                  <option value="Perch">Perch</option>-->
            <!--                                                  <option value="Piece">Piece</option>-->
            <!--                                                  <option value="Pint">Pint</option>-->
            <!--                                                  <option value="Plant">Plant</option>-->
            <!--                                                  <option value="Pole">Pole</option>-->
            <!--                                                  <option value="Pound">Pound</option>-->
            <!--                                                  <option value="Quart">Quart</option>-->
            <!--                                                  <option value="Quarter">Quarter</option>-->
            <!--                                                  <option value="Rod">Rod</option>-->
            <!--                                                  <option value="Roll">Roll</option>-->
            <!--                                                  <option value="Set">Set</option>-->
            <!--                                                  <option value="Sheet">Sheet</option>-->
            <!--                                                  <option value="Short Ton">Short Ton</option>-->
            <!--                                                  <option value="Square Centimeter">Square Centimeter</option>-->
            <!--                                                  <option value="Square Foot">Square Foot</option>-->
            <!--                                                  <option value="Square Inch">Square Inch</option>-->
            <!--                                                  <option value="Square Meter">Square Meter</option>-->
            <!--                                                  <option value="Square Mile">Square Mile</option>-->
            <!--                                                  <option value="Square Yard">Square Yard</option>-->
            <!--                                                  <option value="Stone">Stone</option>-->
            <!--                                                  <option value="Strand">Strand</option>-->
            <!--                                                  <option value="Ton">Ton</option>-->
            <!--                                                  <option value="Tonne">Tonne</option>-->
            <!--                                                  <option value="Tray">Tray</option>-->
            <!--                                                  <option value="Twenty-Foot Container">Twenty-Foot Container</option>-->
            <!--                                                  <option value="Unit">Unit</option>-->
            <!--                                                  <option value="Volt">Volt</option>-->
            <!--                                                  <option value="Watt">Watt</option>-->
            <!--                                                  <option value="Wp">Wp</option>-->
            <!--                                                  <option value="Yard">Yard</option>-->
            <!--                                              </select>-->
            <!--                                        </div>-->
            <!--                                    </div>-->
                                                
                                                
            <!--                                </div>-->
            <!--                                <div class="col-md-4 mb-5">-->
            <!--    <div class="form-group">-->
            <!--        <label class="bmd-label-floating">Min. Order Quantity</label>-->
            <!--       <input class="form-control" name="min_qty" value="<?php echo e($product->min_qty); ?>" value="0" type="number">-->
            <!--    </div>-->
            <!--</div>-->
            <!--                                </div>-->
            <!--    <div id="B" style="display:none">-->
                    
           
            <!--      <div class="col-lg-3">-->
            <!--                                        <div class="form-group">-->
            <!--                                            <label for="formrow-inputCity" class="form-label">Unit</label>-->
            <!--                                             <select class="form-control select2" name="currency">-->
            <!--                                                  <option value="">Select Unit</option>-->
            <!--                                                  <option value="" selected="selected">-- Select Unit --</option>-->
            <!--                                                  <option value="Acre">Acre</option>-->
            <!--                                                  <option value="Ampere">Ampere</option>-->
            <!--                                                  <option value="Bag">Bag</option>-->
            <!--                                                  <option value="Barrel">Barrel</option>-->
            <!--                                                  <option value="Box">Box</option>-->
            <!--                                                  <option value="Bushel">Bushel</option>-->
            <!--                                                  <option value="Carton">Carton</option>-->
            <!--                                                  <option value="Case">Case</option>-->
            <!--                                                  <option value="Centimeter">Centimeter</option>-->
            <!--                                                  <option value="Chain">Chain</option>-->
            <!--                                                  <option value="Cubic Centimeter">Cubic Centimeter</option>-->
            <!--                                                  <option value="Cubic Foot">Cubic Foot</option>-->
            <!--                                                  <option value="Cubic Inch">Cubic Inch</option>-->
            <!--                                                  <option value="Cubic Meter">Cubic Meter</option>-->
            <!--                                                  <option value="Cubic Yard">Cubic Yard</option>-->
            <!--                                                  <option value="DEGREES Celsius">DEGREES Celsius</option>-->
            <!--                                                  <option value="Degrees Fahrenheit">Degrees Fahrenheit</option>-->
            <!--                                                  <option value="Dozen">Dozen</option>-->
            <!--                                                  <option value="Dram">Dram</option>-->
            <!--                                                  <option value="Fluid Ounce">Fluid Ounce</option>-->
            <!--                                                  <option value="Foot">Foot</option>-->
            <!--                                                  <option value="Forty-Foot Container ">Forty-Foot Container </option>-->
            <!--                                                  <option value="Furlong">Furlong</option>-->
            <!--                                                  <option value="Gallon">Gallon</option>-->
            <!--                                                  <option value="Gill">Gill</option>-->
            <!--                                                  <option value="Grain">Grain</option>-->
            <!--                                                  <option value="Gram">Gram</option>-->
            <!--                                                  <option value="Gross">Gross</option>-->
            <!--                                                  <option value="Hectare">Hectare</option>-->
            <!--                                                  <option value="Hertz">Hertz</option>-->
            <!--                                                  <option value="Inch">Inch</option>-->
            <!--                                                  <option value="Kiloampere">Kiloampere</option>-->
            <!--                                                  <option value="Kilogram">Kilogram</option>-->
            <!--                                                  <option value="Kilohertz">Kilohertz</option>-->
            <!--                                                  <option value="Kilometer">Kilometer</option>-->
            <!--                                                  <option value="Kiloohm">Kiloohm</option>-->
            <!--                                                  <option value="Kilovolt">Kilovolt</option>-->
            <!--                                                  <option value="Kilowatt">Kilowatt</option>-->
            <!--                                                  <option value="Liter">Liter</option>-->
            <!--                                                  <option value="Long Ton">Long Ton</option>-->
            <!--                                                  <option value="Megahertz">Megahertz</option>-->
            <!--                                                  <option value="Meter">Meter</option>-->
            <!--                                                  <option value="Metric Ton">Metric Ton</option>-->
            <!--                                                  <option value="Mile">Mile</option>-->
            <!--                                                  <option value="Milliampere">Milliampere</option>-->
            <!--                                                  <option value="Milligram">Milligram</option>-->
            <!--                                                  <option value="Millihertz">Millihertz</option>-->
            <!--                                                  <option value="Milliliter">Milliliter</option>-->
            <!--                                                  <option value="Millimeter">Millimeter</option>-->
            <!--                                                  <option value="Milliohm">Milliohm</option>-->
            <!--                                                  <option value="Millivolt">Millivolt</option>-->
            <!--                                                  <option value="Milliwatt">Milliwatt</option>-->
            <!--                                                  <option value="Nautical Mile">Nautical Mile</option>-->
            <!--                                                  <option value="Ohm">Ohm</option>-->
            <!--                                                  <option value="Ounce">Ounce</option>-->
            <!--                                                  <option value="Pack">Pack</option>-->
            <!--                                                  <option value="Pallet">Pallet</option>-->
            <!--                                                  <option value="Pair">Pair</option>-->
            <!--                                                  <option value="Parcel">Parcel</option>-->
            <!--                                                  <option value="Perch">Perch</option>-->
            <!--                                                  <option value="Piece">Piece</option>-->
            <!--                                                  <option value="Pint">Pint</option>-->
            <!--                                                  <option value="Plant">Plant</option>-->
            <!--                                                  <option value="Pole">Pole</option>-->
            <!--                                                  <option value="Pound">Pound</option>-->
            <!--                                                  <option value="Quart">Quart</option>-->
            <!--                                                  <option value="Quarter">Quarter</option>-->
            <!--                                                  <option value="Rod">Rod</option>-->
            <!--                                                  <option value="Roll">Roll</option>-->
            <!--                                                  <option value="Set">Set</option>-->
            <!--                                                  <option value="Sheet">Sheet</option>-->
            <!--                                                  <option value="Short Ton">Short Ton</option>-->
            <!--                                                  <option value="Square Centimeter">Square Centimeter</option>-->
            <!--                                                  <option value="Square Foot">Square Foot</option>-->
            <!--                                                  <option value="Square Inch">Square Inch</option>-->
            <!--                                                  <option value="Square Meter">Square Meter</option>-->
            <!--                                                  <option value="Square Mile">Square Mile</option>-->
            <!--                                                  <option value="Square Yard">Square Yard</option>-->
            <!--                                                  <option value="Stone">Stone</option>-->
            <!--                                                  <option value="Strand">Strand</option>-->
            <!--                                                  <option value="Ton">Ton</option>-->
            <!--                                                  <option value="Tonne">Tonne</option>-->
            <!--                                                  <option value="Tray">Tray</option>-->
            <!--                                                  <option value="Twenty-Foot Container">Twenty-Foot Container</option>-->
            <!--                                                  <option value="Unit">Unit</option>-->
            <!--                                                  <option value="Volt">Volt</option>-->
            <!--                                                  <option value="Watt">Watt</option>-->
            <!--                                                  <option value="Wp">Wp</option>-->
            <!--                                                  <option value="Yard">Yard</option>-->
            <!--                                              </select>-->
            <!--                                        </div>-->
            <!--                                    </div>-->
                                                
                                                
                                                
            <!--           <div data-repeater-list="price-group" class="price">         -->
            <!--            <div data-repeater-item class="price">-->
            <!--            <div class="inner-repeater mb-4">-->
            <!--                                            <div data-repeater-list="qty_price" class="innerp mb-3">-->
            <!--                                                <label>Price :</label>-->
            <!--                                                <div data-repeater-item class="innerp mb-3 row">-->
            <!--                                                    <div class="col-md-3 col-8">-->
            <!--                                                        <input type="text" name="qty_form" value="<?php echo e($product->qty_form); ?>" class="inner form-control" placeholder="Qty From"/>-->
            <!--                                                    </div>-->
            <!--                                                    <div class="col-md-3 col-8">-->
            <!--                                                        <input type="text" name="qty_to" value="<?php echo e($product->qty_to); ?>" class="inner form-control" placeholder="Qty To"/>-->
            <!--                                                    </div>-->
            <!--                                                    <div class="col-md-3 col-8">-->
            <!--                                                        <input type="text" name="price" value="<?php echo e($product->price); ?>" class="inner form-control" placeholder="Price"/>-->
            <!--                                                    </div>-->
            <!--                                                    <div class="col-md-1 col-4">-->
            <!--                                                        <div class="d-grid">-->
            <!--                                                            <input data-repeater-delete type="button" class="btn btn-primary inner" value="Delete"/>-->
            <!--                                                        </div>-->
            <!--                                                    </div>-->
                                                                
            <!--                                                </div>-->
            <!--                                            </div>-->
            <!--                                            <input data-repeater-create type="button" class="btn btn-success inner" value="Add More"/>-->
            <!--                                        </div>                      -->
                        
                        
                        
            <!--            </div></div>-->
            <!--      </div>-->
                  
                  
                  
                  
                  
                  
                  <div class="form-ew form-sm type-form">
                <label> Accepted Payment Method </label>
                <div class="next-form-item-control">
                    <div class="form-check mb-3">
                        <input class="form-check-input" name="payment_ids[]"  id="price-setting2" type="checkbox" value="T/T" id="formCheck1">
                        <label class="form-check-label" for="formCheck1">
                            T/T
                        </label>
                    </div>
                    <div class="form-check mb-3">
                        <input class="form-check-input" name="payment_ids[]" id="price-setting2" type="checkbox" value="L/C" id="formCheck1">
                        <label class="form-check-label" for="formCheck1">
                           L/C
                        </label>
                    </div>
                    <div class="form-check mb-3">
                        <input class="form-check-input" name="payment_ids[]" id="price-setting2" type="checkbox" value="D/A" id="formCheck1">
                        <label class="form-check-label" for="formCheck1">
                         D/A
                        </label>
                    </div>
                    <div class="form-check mb-3">
                        <input class="form-check-input" name="payment_ids[]" id="price-setting2" type="checkbox" value="D/P" id="formCheck1">
                        <label class="form-check-label" for="formCheck1">
                         D/P
                        </label>
                    </div>
                    <div class="form-check mb-3">
                        <input class="form-check-input" name="payment_ids[]" id="price-setting2" type="checkbox" value="Western Union" id="formCheck1">
                        <label class="form-check-label" for="formCheck1">
                         Western Union
                        </label>
                    </div>
                    <div class="form-check mb-3">
                        <input class="form-check-input" name="payment_ids[]" id="price-setting2" type="checkbox" value="Money Gram" id="formCheck1">
                        <label class="form-check-label" for="formCheck1">
                         Money Gram
                        </label>
                    </div>
                    <div class="form-check mb-3">
                        <input class="form-check-input" name="payment_ids[]" id="price-setting2" type="checkbox" value="Paypal" id="formCheck1">
                        <label class="form-check-label" for="formCheck1">
                         Paypal
                        </label>
                    </div>
                    <div class="form-check mb-3">
                        <input class="form-check-input" name="payment_ids[]" id="price-setting2" type="checkbox" value="other" id="formCheck1" onclick="show_other_field()">
                        <label class="form-check-label" for="formCheck1">
                         Other
                        </label>
                    </div>
                </div>
            </div>
                  
                  
                  
                  
                  
                <div class="col-md-6 mb-3" id="p_other_field" style="display: none;">
                    <div class="form-group">
                        <label> Other Payment Methods: </label>
                        <input class="form-control" name="other_payment_methods" type="text">
                    </div>  
                </div>  
                  
                  
                  
                  <div class="form-ew form-sm">
                <label> Supply Type </label>
                <div class="next-form-item-control">
                    <label class="checkbox-group" for="supply-setting1">
                        <input class="option-input" name="stock" id="supply-setting1" type="radio" value="oem_service" checked="checked" data-parsley-multiple="shipping_detailsupply_type">
                        OEM Service
                    </label>
                    <label for="supply-setting2" class="checkbox-group">
                        <input class="option-input" name="stock"  id="supply-setting2" type="radio" value="in_stock" data-parsley-multiple="shipping_detailsupply_type">
                        In Stock
                    </label>
                </div>
            </div>
                  
                  
                  
                  
                 <div class="col-md-6 mb-3">
                <div class="form-group">
                  <label class="bmd-label-floating">Port</label>
                  <input type="number" name="port" value="<?php echo e($product->port); ?>" class="form-control">
                </div>
              </div>  
                  
                  
                  
                <div class="col-md-6 mb-3">
                <div class="form-group">
                  <label class="bmd-label-floating">Processing time</label>
                  <input type="text" name="processing_time" value="<?php echo e($product->processing_time); ?>" class="form-control">
                </div>
              </div>  
           
           
           
           
           
           
           <div class="card-header card-header-icon card-header-info">
              <h4 class="card-title">Supply Ability
              </h4>
            </div>
           
           
           
                <div class="row">
                    <div class="col-lg-4">
                        <div class="mb-3">
                            <label for="formrow-inputCity" class="form-label">Qty</label>
                             <input type="text" name="qty" value="<?php echo e($product->qty); ?>" class="form-control">
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="mb-3">
                            <div class="form-group">
                                                        <label for="formrow-inputCity" class="form-label">Unit</label>
                                                         <select class="form-control select2" name="units">
                                                              <option value="">Select Unit</option>
                                                              <option value="" selected="selected">-- Select Unit --</option>
                                                              <option value="Acre">Acre</option>
                                                              <option value="Ampere">Ampere</option>
                                                              <option value="Bag">Bag</option>
                                                              <option value="Barrel">Barrel</option>
                                                              <option value="Box">Box</option>
                                                              <option value="Bushel">Bushel</option>
                                                              <option value="Carton">Carton</option>
                                                              <option value="Case">Case</option>
                                                              <option value="Centimeter">Centimeter</option>
                                                              <option value="Chain">Chain</option>
                                                              <option value="Cubic Centimeter">Cubic Centimeter</option>
                                                              <option value="Cubic Foot">Cubic Foot</option>
                                                              <option value="Cubic Inch">Cubic Inch</option>
                                                              <option value="Cubic Meter">Cubic Meter</option>
                                                              <option value="Cubic Yard">Cubic Yard</option>
                                                              <option value="DEGREES Celsius">DEGREES Celsius</option>
                                                              <option value="Degrees Fahrenheit">Degrees Fahrenheit</option>
                                                              <option value="Dozen">Dozen</option>
                                                              <option value="Dram">Dram</option>
                                                              <option value="Fluid Ounce">Fluid Ounce</option>
                                                              <option value="Foot">Foot</option>
                                                              <option value="Forty-Foot Container ">Forty-Foot Container </option>
                                                              <option value="Furlong">Furlong</option>
                                                              <option value="Gallon">Gallon</option>
                                                              <option value="Gill">Gill</option>
                                                              <option value="Grain">Grain</option>
                                                              <option value="Gram">Gram</option>
                                                              <option value="Gross">Gross</option>
                                                              <option value="Hectare">Hectare</option>
                                                              <option value="Hertz">Hertz</option>
                                                              <option value="Inch">Inch</option>
                                                              <option value="Kiloampere">Kiloampere</option>
                                                              <option value="Kilogram">Kilogram</option>
                                                              <option value="Kilohertz">Kilohertz</option>
                                                              <option value="Kilometer">Kilometer</option>
                                                              <option value="Kiloohm">Kiloohm</option>
                                                              <option value="Kilovolt">Kilovolt</option>
                                                              <option value="Kilowatt">Kilowatt</option>
                                                              <option value="Liter">Liter</option>
                                                              <option value="Long Ton">Long Ton</option>
                                                              <option value="Megahertz">Megahertz</option>
                                                              <option value="Meter">Meter</option>
                                                              <option value="Metric Ton">Metric Ton</option>
                                                              <option value="Mile">Mile</option>
                                                              <option value="Milliampere">Milliampere</option>
                                                              <option value="Milligram">Milligram</option>
                                                              <option value="Millihertz">Millihertz</option>
                                                              <option value="Milliliter">Milliliter</option>
                                                              <option value="Millimeter">Millimeter</option>
                                                              <option value="Milliohm">Milliohm</option>
                                                              <option value="Millivolt">Millivolt</option>
                                                              <option value="Milliwatt">Milliwatt</option>
                                                              <option value="Nautical Mile">Nautical Mile</option>
                                                              <option value="Ohm">Ohm</option>
                                                              <option value="Ounce">Ounce</option>
                                                              <option value="Pack">Pack</option>
                                                              <option value="Pallet">Pallet</option>
                                                              <option value="Pair">Pair</option>
                                                              <option value="Parcel">Parcel</option>
                                                              <option value="Perch">Perch</option>
                                                              <option value="Piece">Piece</option>
                                                              <option value="Pint">Pint</option>
                                                              <option value="Plant">Plant</option>
                                                              <option value="Pole">Pole</option>
                                                              <option value="Pound">Pound</option>
                                                              <option value="Quart">Quart</option>
                                                              <option value="Quarter">Quarter</option>
                                                              <option value="Rod">Rod</option>
                                                              <option value="Roll">Roll</option>
                                                              <option value="Set">Set</option>
                                                              <option value="Sheet">Sheet</option>
                                                              <option value="Short Ton">Short Ton</option>
                                                              <option value="Square Centimeter">Square Centimeter</option>
                                                              <option value="Square Foot">Square Foot</option>
                                                              <option value="Square Inch">Square Inch</option>
                                                              <option value="Square Meter">Square Meter</option>
                                                              <option value="Square Mile">Square Mile</option>
                                                              <option value="Square Yard">Square Yard</option>
                                                              <option value="Stone">Stone</option>
                                                              <option value="Strand">Strand</option>
                                                              <option value="Ton">Ton</option>
                                                              <option value="Tonne">Tonne</option>
                                                              <option value="Tray">Tray</option>
                                                              <option value="Twenty-Foot Container">Twenty-Foot Container</option>
                                                              <option value="Unit">Unit</option>
                                                              <option value="Volt">Volt</option>
                                                              <option value="Watt">Watt</option>
                                                              <option value="Wp">Wp</option>
                                                              <option value="Yard">Yard</option>
                                                          </select>
                                                    </div>
                        </div>
                    </div>
                    
                    <div class="col-lg-4">
                        <div class="mb-3">
                            <div class="form-group">
                            <label for="formrow-inputZip" class="form-label">Time</label>
                            <select class="form-control" name="shippng_time">
                                <option value="" selected="selected">-- Time --</option>
                                <option value="Day">Day</option>
                                <option value="Quarter">Quarter</option>
                                <option value="Week">Week</option>
                                <option value="Month">Month</option>
                                <option value="Year">Year</option>
                            </select>
                        </div>
                    </div>
                    </div>
                    
                </div>
               <div class="col-md-12 mb-3 mb-5">
                <div class="form-group">
                  <h3 class="mb-3">Enter Description</h3>
                  <textarea id="elm1" name="des" aria-hidden="true"><?php echo e($product->details); ?></textarea>
                  <?php if($errors->has('des')): ?>
                        <span class="text-danger"><?php echo e($errors->first('des')); ?></span>
                    <?php endif; ?>
                </div>
              </div>
              
             
            
            </div>
            <div class="row">
              <div class="col-md-3 col-sm-6">
                  <img style="width:50px;" src="<?php echo e(asset('storage/images/admin/product/'.$product->gallary1.'')); ?>" alt="NO image avialable"> <br/>
                  <label class="bmd-label-floating field">Product Image 1</label>
                  <input type="file" id="files2" name="gallary1" class="form-control">
                  
              </div>
              <div class="col-md-3 col-sm-6">
                  <img style="width:50px;" src="<?php echo e(asset('storage/images/admin/product/'.$product->gallary2.'')); ?>" alt="NO image avialable"> <br/>
                  <label class="bmd-label-floating">Product Image 2</label>
                  <input type="file" id="files3" name="gallary2" class="form-control">
                  
              </div>
              <div class="col-md-3 col-sm-6">
                  <img style="width:50px;" src="<?php echo e(asset('storage/images/admin/product/'.$product->gallary4.'')); ?>" alt="No image avialable"><br/>
                  <label class="bmd-label-floating">Product Image 3</label>
                  <input type="file" id="files4" name="gallary3" class="form-control">
                  
              </div>
              <div class="col-md-3 col-sm-6">
                  <img style="width:50px;" src="<?php echo e(asset('storage/images/admin/product/'.$product->gallary4.'')); ?>" alt="No image avialable"><br/>
                  <label class="bmd-label-floating">Product Image 4</label>
                  <input type="file" id="files5" name="gallary4" class="form-control">
                  
              </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="col-md-6 mb-3 mb-5 mt-5">
                    <div class="form-group">
                      <h3 class="mb-3">Meta Description</h3>
                      <textarea  name="meta_description" class="form-control"><?php echo e($product->meta_description); ?></textarea>
                    </div>
                  </div>
                    <div class="col-md-6 mb-3 mt-5">
                    <div class="form-group">
                      <h3 class="mb-3">Meta Keyword</h3>
                      <input  name="meta_keyword" value="<?php echo e($product->meta_keyword); ?>" class="form-control" />
                    </div>
                  </div>
                </div>
            </div>
            <button type="submit" class="btn btn-info pull-right mt-3">Update</button>
            <div class="clearfix"></div>
          </form>
        </div>
      
    </div>
    </div>
    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('/assets/libs/select2/select2.min.js')); ?>"></script>

    <!-- dropzone plugin -->
    <script src="<?php echo e(asset('/assets/libs/dropzone/dropzone.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/libs/tinymce/tinymce.min.js')); ?>"></script>
    <!-- init js -->
    <script src="<?php echo e(asset('/assets/js/pages/ecommerce-select2.init.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/pages/form-editor.init.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/libs/jquery-repeater/jquery-repeater.min.js')); ?>"></script>

        <script src="<?php echo e(asset('assets/js/pages/form-repeater.int.js')); ?>"></script>
<script>
function show_other_field(){$('#p_other_field').toggle();}
function hideA(x) {
   if (x.checked) {
     document.getElementById("A").style.display = "none";
     document.getElementById("B").style.display = "initial";
   }
 }

 function hideB(x) {
   if (x.checked) {
     document.getElementById("B").style.display = "none";
     document.getElementById("A").style.display = "initial";
   }
 }


</script>
<script>
       $(document).ready(function() {
  if (window.File && window.FileList && window.FileReader) {
    $("#filesz").on("change", function(e) {
      var files = e.target.files,
        filesLength = files.length;
      
        var f = files[0]
        var fileReader = new FileReader();
        fileReader.onload = (function(e) {
          var file = e.target;
          $("<span class=\"pip\">" +
            "<img class=\"imageThumb\" src=\"" + e.target.result + "\" title=\"" + file.name + "\" style=\"width: 100px; height: 100px;\"/>" +
            "<br/><span class=\"remove\">Remove image</span>" +
            "</span>").insertAfter("#filesz");
          $(".remove").click(function(){
            $(this).parent(".pip").remove();
          });
          
          // Old code here
          /*$("<img></img>", {
            class: "imageThumb",
            src: e.target.result,
            title: file.name + " | Click to remove"
          }).insertAfter("#files").click(function(){$(this).remove();});*/
          
        });
        fileReader.readAsDataURL(f);
      
      console.log(files);
    });
  } else {
    alert("Your browser doesn't support to File API")
  }
});
    </script>
<script>
       $(document).ready(function() {
  if (window.File && window.FileList && window.FileReader) {
    $("#files5").on("change", function(e) {
      var files = e.target.files,
        filesLength = files.length;
      
        var f = files[0]
        var fileReader = new FileReader();
        fileReader.onload = (function(e) {
          var file = e.target;
          $("<span class=\"pip\">" +
            "<img class=\"imageThumb\" src=\"" + e.target.result + "\" title=\"" + file.name + "\"/>" +
            "<br/><span class=\"remove\">Remove image</span>" +
            "</span>").insertAfter("#files5");
          $(".remove").click(function(){
            $(this).parent(".pip").remove();
          });
          
          // Old code here
          /*$("<img></img>", {
            class: "imageThumb",
            src: e.target.result,
            title: file.name + " | Click to remove"
          }).insertAfter("#files").click(function(){$(this).remove();});*/
          
        });
        fileReader.readAsDataURL(f);
      
      console.log(files);
    });
  } else {
    alert("Your browser doesn't support to File API")
  }
});
    </script>



<script>
       $(document).ready(function() {
  if (window.File && window.FileList && window.FileReader) {
    $("#files2").on("change", function(e) {
      var files = e.target.files,
        filesLength = files.length;
      
        var f = files[0]
        var fileReader = new FileReader();
        fileReader.onload = (function(e) {
          var file = e.target;
          $("<span class=\"pip\">" +
            "<img class=\"imageThumb\" src=\"" + e.target.result + "\" title=\"" + file.name + "\"/>" +
            "<br/><span class=\"remove\">Remove image</span>" +
            "</span>").insertAfter("#files2");
          $(".remove").click(function(){
            $(this).parent(".pip").remove();
          });
          
          // Old code here
          /*$("<img></img>", {
            class: "imageThumb",
            src: e.target.result,
            title: file.name + " | Click to remove"
          }).insertAfter("#files").click(function(){$(this).remove();});*/
          
        });
        fileReader.readAsDataURL(f);
      
      console.log(files);
    });
  } else {
    alert("Your browser doesn't support to File API")
  }
});
    </script>

<script>
       $(document).ready(function() {
  if (window.File && window.FileList && window.FileReader) {
    $("#files3").on("change", function(e) {
      var files = e.target.files,
        filesLength = files.length;
      
        var f = files[0]
        var fileReader = new FileReader();
        fileReader.onload = (function(e) {
          var file = e.target;
          $("<span class=\"pip\">" +
            "<img class=\"imageThumb\" src=\"" + e.target.result + "\" title=\"" + file.name + "\"/>" +
            "<br/><span class=\"remove\">Remove image</span>" +
            "</span>").insertAfter("#files3");
          $(".remove").click(function(){
            $(this).parent(".pip").remove();
          });
          
          // Old code here
          /*$("<img></img>", {
            class: "imageThumb",
            src: e.target.result,
            title: file.name + " | Click to remove"
          }).insertAfter("#files").click(function(){$(this).remove();});*/
          
        });
        fileReader.readAsDataURL(f);
      
      console.log(files);
    });
  } else {
    alert("Your browser doesn't support to File API")
  }
});
    </script>
    
    
    
    <script>
       $(document).ready(function() {
  if (window.File && window.FileList && window.FileReader) {
    $("#files4").on("change", function(e) {
      var files = e.target.files,
        filesLength = files.length;
      
        var f = files[0]
        var fileReader = new FileReader();
        fileReader.onload = (function(e) {
          var file = e.target;
          $("<span class=\"pip\">" +
            "<img class=\"imageThumb\" src=\"" + e.target.result + "\" title=\"" + file.name + "\"/>" +
            "<br/><span class=\"remove\">Remove image</span>" +
            "</span>").insertAfter("#files4");
          $(".remove").click(function(){
            $(this).parent(".pip").remove();
          });
          
          // Old code here
          /*$("<img></img>", {
            class: "imageThumb",
            src: e.target.result,
            title: file.name + " | Click to remove"
          }).insertAfter("#files").click(function(){$(this).remove();});*/
          
        });
        fileReader.readAsDataURL(f);
      
      console.log(files);
    });
  } else {
    alert("Your browser doesn't support to File API")
  }
});
    </script>
<script>











$(document).ready(function() {
      $(".btn-success").click(function(){ 
          var lsthmtl = $(".clone").html();
          $(".increment").after(lsthmtl);
      });
       $("body").on("click",".btn-danger",function(){ 
          $(this).parents("#cloning").remove();
      });
    });
    
    
    
    
    
    
    $(document).on('change', '[name=category_id]', function() {
            var child_id = $(this).val();
            get_cat(child_id);
        });
        
        
        function get_cat(child_id) {
            $('[name="sub_id"]').html("");
            $.ajax({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                },
                url: "<?php echo e(route('ajax.cat')); ?>",
                type: 'POST',
                data: {
                    sub_id  : child_id
                },
                success: function (response) {
                    var obj = JSON.parse(response);
                    if(obj != '') {
                        $('#sub_id').html(obj);
                        $('[name="sub_id"]').html(obj);
                    } else {
                        alert('wrong');
                    }
                }
            });
        }
        
        
        
        
        
        
        
        $(document).on('change', '[name=sub_id]', function() {
            var child_id = $(this).val();
            get_child(child_id);
        });
        
        
        function get_child(child_id) {
            $('[name="child_id"]').html("");
            $.ajax({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                },
                url: "<?php echo e(route('ajax.subcat')); ?>",
                type: 'POST',
                data: {
                    sub_id  : child_id
                },
                success: function (response) {
                    $('#child_id').html(obj);
                    var obj = JSON.parse(response);
                    if(obj != '') {
                        $('[name="child_id"]').html(obj);
                    }
                }
            });
        }
        
        
        
        $(function() {
$('#example').select2({
         multiple: true,
         maximumSelectionSize: 1,
         tags: true
    });
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('user.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/user/pages/product/edit.blade.php ENDPATH**/ ?>