Current File : /home/tradevaly/www/storage/framework/views/9ecd6011f9e9189d5e8930ec22e3e18227894f00.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" />
<style>
.price-hide {
display: none;
}
.price-table tr td {
padding-right: 30px;
}
</style>
<?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">Create New Product
</h4>
</div>
<div class="card-body">
<form action="<?php echo e(url('user/products/add')); ?>" 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->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>
</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>
</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(old('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 $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($category->name); ?>"><?php echo e($category->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>
<input type="file" id="filesz" name="image" class="form-control">
<p>We suggest your images be less than 1000px*1000px with a clear subject to improve buyer satisfaction.</p>
<?php if($errors->has('image')): ?>
<span class="text-danger"><?php echo e($errors->first('image')); ?></span>
<?php endif; ?>
</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(old('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(old('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(old('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(old('product_type')=="inquery"?'selected':''); ?>>Inquery Product</option>
<option value="ecommerce" <?php echo e(old('product_type')=="ecommerce"?'selected':''); ?>>Ecommerce Product</option>
</select>
</div>
</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(old('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(old('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>
</div>
</div>
</div>
<div class="card-header card-header-icon card-header-info">
<h4 class="card-title">Trade Information
</h4>
</div>
<div class="row">
<div class="col-md-4">
<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(old('origin')=="$country->name"?'seleted':''); ?>><?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">
<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(old('currency')==$currency?'seleted':''); ?>><?php echo e($currency); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
</div>
<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" class="form-check-input" checked name="price_type" <?php echo e(old('price_type')=="negotiable"?'selected':''); ?> value="negotiable" onclick="show1();" />
<label class="form-check-label" for="formCheck1">
Negotiable price
</label>
</div>
<div class="form-check mb-3">
<input type="radio" id="qbp" class="form-check-input" name="price_type" <?php echo e(old('price_type')=="qbp"?'selected':''); ?> 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" class="form-check-input" name="price_type" <?php echo e(old('price_type')=="pbq"?'selected':''); ?> value="pbq" id="pbq" onclick="show3();" />
<label class="form-check-label" for="formCheck1">
Set price based on quantity
</label>
</div>
</div>
</div>
<div id="div1">
</div>
<div id="div2" class="price-hide">
<div id="main">
<table id="qbp" class="data-table data-table-horizontal data-table-highlight">
<tbody class="price-table">
<tr>
<td >
<input type="text" name="qty_min" class="inner form-control" placeholder="Qty From" />
<?php if($errors->has('qty_min')): ?>
<span class="text-danger"><?php echo e($errors->first('qty_min')); ?> *</span>
<?php endif; ?>
</td>
<td>
<input type="text" name="qty_max" class="inner form-control" placeholder="Qty To"/>
<?php if($errors->has('qty_max')): ?>
<span class="text-danger"><?php echo e($errors->first('qty_max')); ?> *</span>
<?php endif; ?>
</td>
<td>
<input type="text" name="qty_total" class="inner form-control" placeholder="Price"/>
<?php if($errors->has('qty_total')): ?>
<span class="text-danger"><?php echo e($errors->first('qty_total')); ?> *</span>
<?php endif; ?>
</td>
<td>
<label for="formrow-inputCity" class="form-label">Unit</label>
<select class="form-control select2" name="qty_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>
</td>
<!--<td>-->
<!-- <a type="button" class="btn btn-primary inner" value="Delete" onclick="deleteRow(this)">delete</a>-->
<!--</td>-->
</tr>
</tbody>
</table>
<!--<div class="pull-right">-->
<!-- <input type="button" value="Add" class="btn btn-success mt-3" onclick="addRow('qbp')" />-->
<!--</div>-->
</div>
</div>
<div id="div3" class="price-hide">
<div id="main">
<table id="pbq" class="data-table data-table-horizontal data-table-highlight">
<tbody class="price-table">
<tr>
<td >
<input type="text" name="price_min" value="<?php echo e(old('price_min')); ?>" class="inner form-control" placeholder="Price From" />
<?php if($errors->has('price_min')): ?>
<span class="text-danger"><?php echo e($errors->first('price_min')); ?> *</span>
<?php endif; ?>
</td>
<td>
<input type="text" name="price_max" value="<?php echo e(old('price_max')); ?>" class="inner form-control" placeholder="Price To"/>
<?php if($errors->has('price_max')): ?>
<span class="text-danger"><?php echo e($errors->first('price_max')); ?> *</span>
<?php endif; ?>
</td>
<td>
<input type="text" name="price_total" class="inner form-control" placeholder="Quantity"/>
<?php if($errors->has('price_total')): ?>
<span class="text-danger"><?php echo e($errors->first('price_total')); ?> *</span>
<?php endif; ?>
</td>
<td>
<label for="formrow-inputCity" class="form-label">Unit</label>
<select class="form-control select2" name="price_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>
</td>
<!--<td>-->
<!-- <a type="button" class="btn btn-primary inner" value="Delete" onclick="deleteRow2(this)">delete</a>-->
<!--</td>-->
</tr>
</tbody>
</table>
<!--<div class="pull-right">-->
<!-- <input type="button" value="Add" class="btn btn-success mt-3" onclick="addRow('pbq')" />-->
<!--</div>-->
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="my-3">
<label for="singlePrice" class="form-label">Single unit Price</label>
<input type="number" class="form-control" name="single_price" value="<?php echo e(old('single_price')); ?>" id="singlePrice" placeholder="Enter Price">
<?php $__errorArgs = ['single_price'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<div class="alert alert-danger" role="alert">
<strong>Error - </strong><?php echo e($message); ?>
</div>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="col-md-4">
<div class="my-3">
<label for="discountPrice" class="form-label">Discount Percentage </label>
<input type="number" class="form-control" name="discount_price" value="<?php echo e(old('discount_price')); ?>" id="discountPrice" placeholder="Enter discount percentage">
<?php $__errorArgs = ['discount_price'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<div class="alert alert-danger" role="alert">
<strong>Error - </strong><?php echo e($message); ?>
</div>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</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" value="<?php echo e(old('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="supply_type" id="supply-setting1" type="radio" value="oem_service" value="<?php echo e(old('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="supply_type" id="supply-setting2" type="radio" value="in_stock" value="<?php echo e(old('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="text" name="port" value="<?php echo e(old('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(old('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="number" name="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">
<div class="form-group">
<h3 class="mb-3">Enter Description *</h3>
<?php if($errors->has('des')): ?>
<span class="text-danger"><?php echo e($errors->first('des')); ?></span>
<?php endif; ?>
<textarea id="elm1" name="des" aria-hidden="true"></textarea>
</div>
</div>
</div>
<div class="row">
<div class="col-md-3 col-sm-6">
<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">
<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">
<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">
<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"></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" class="form-control" />
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-info pull-right mt-3">Create</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
});
});
function show1(){
document.getElementById('div1').style.display ='block';
document.getElementById('div2').style.display = 'none';
document.getElementById('div3').style.display = 'none';
}
function show2(){
document.getElementById('div1').style.display ='none';
document.getElementById('div2').style.display ='block';
document.getElementById('div3').style.display = 'none';
}
function show3(){
document.getElementById('div1').style.display ='none';
document.getElementById('div2').style.display ='none';
document.getElementById('div3').style.display = 'block';
}
// $(document).ready(function(){
// $("#negotiable").click(function(){
// const list = document.getElementById("price_input");
// while (list.hasChildNodes()) {
// list.removeChild(list.firstChild);
// }
// $("#price_input").append(`
// <div class="row" >
// <div class="col-lg-3">
// <div class="mb-3">
// <label for="min" class="form-label">Min</label>
// <input type="text" name="min" class="form-control" placeholder="Enter Minimum">
// </div>
// </div>
// <div class="col-lg-3">
// <div class="mb-3">
// <label for="max" class="form-label">Max</label>
// <input type="text" name="max" class="form-control" id="max" 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>
// `);
// });
// });
// $(document).ready(function(){
// $("#qbp").click(function(){
// const list = document.getElementById("price_input");
// while (list.hasChildNodes()) {
// list.removeChild(list.firstChild);
// }
// $("#price_input").append(`
// <div id="main">
// <table id="qbp" class="data-table data-table-horizontal data-table-highlight">
// <tbody class="price-table">
// <tr>
// <td >
// <input type="text" name="min" class="inner form-control" placeholder="Qty From" />
// </td>
// <td>
// <input type="text" name="max" class="inner form-control" placeholder="Qty To"/>
// </td>
// <td>
// <input type="text" name="unit" class="inner form-control" placeholder="Price"/>
// </td>
// </tr>
// </tbody>
// </table>
// </div>
// `);
// });
// });
// $(document).ready(function(){
// $("#pbq").click(function(){
// const list = document.getElementById("price_input");
// while (list.hasChildNodes()) {
// list.removeChild(list.firstChild);
// }
// $("#price_input").append(`<div id="main">
// <table id="pbq" class="data-table data-table-horizontal data-table-highlight">
// <tbody class="price-table">
// <tr>
// <td >
// <input type="text" name="min" class="inner form-control" placeholder="Price From" />
// </td>
// <td>
// <input type="text" name="max" class="inner form-control" placeholder="Price To"/>
// </td>
// <td>
// <input type="text" name="unit" class="inner form-control" placeholder="Quantity"/>
// </td>
// </tr>
// </tbody>
// </table>
// </div>`);
// });
// });
</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/create.blade.php ENDPATH**/ ?>