/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<form action="<?php echo e(URL('/user/edit-product')); ?>" role="form" id="editProductForm"> <input type="hidden" value="<?php echo e($product->id); ?>" name="id"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="name">Product Name</label> <input type="text" class="form-control" value="<?php echo e($product->name); ?>" name="name" id="edit_name" placeholder="Name"> <span class="label label-danger" id="edit_name_error" style="display: none;"></span> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="hsn_code">HSN Code</label> <input type="text" class="form-control" value="<?php echo e($product->hsn_code); ?>" name="hsn_code" id="edit_hsn_code" placeholder="HSN Code"> <span class="label label-danger" id="edit_hsn_code_error" style="display: none;"></span> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="gst_slab">GST Slab (%)</label> <input type="text" class="form-control" value="<?php echo e($product->gst_slab); ?>" name="gst_slab" id="edit_gst_slab" placeholder="GST Slab" oninput="this.value = this.value.replace(/[^0-9]/g, '')"> <span class="label label-danger" id="edit_gst_slab_error" style="display: none;"></span> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="igst">IGST (%)</label> <input type="text" class="form-control" value="<?php echo e($product->igst); ?>" name="igst" id="edit_igst" placeholder="IGST" oninput="this.value = this.value.replace(/[^0-9]/g, '')"> <span class="label label-danger" id="edit_igst_error" style="display: none;"></span> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="cgst">CGST (%)</label> <input type="text" class="form-control" value="<?php echo e($product->cgst); ?>" name="cgst" id="edit_cgst" placeholder="CGST" oninput="this.value = this.value.replace(/[^0-9.]/g, '')"> <span class="label label-danger" id="edit_cgst_error" style="display: none;"></span> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="sgst">SGST (%)</label> <input type="text" class="form-control" value="<?php echo e($product->sgst); ?>" name="sgst" id="edit_sgst" placeholder="SGST" oninput="this.value = this.value.replace(/[^0-9.]/g, '')"> <span class="label label-danger" id="edit_sgst_error" style="display: none;"></span> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="invoice_type">Invoice Type</label> <select name="invoice_type" id="invoice_type" class="form-control"> <option value="">Select Invoice Type</option> <?php $__currentLoopData = $invoice_types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $invoice_type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($invoice_type->id); ?>" <?php echo e($product->invoice_type_id == $invoice_type->id ? "selected":""); ?>><?php echo e($invoice_type->invoice_type); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <span class="label label-danger" id="edit_invoice_type_error" style="display: none;"></span> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="product_category">Product Categories</label> <select name="product_category" id="product_category" class="form-control"> <?php $__currentLoopData = $product_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($product_cat->id); ?>" <?php echo e($product_cat->id == $product->product_category_id ? "selected":""); ?>><?php echo e($product_cat->category); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <span class="label label-danger" id="edit_product_category_error" style="display: none;"></span> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="weight_in_kg">Weight (in kg)</label> <input type="text" class="form-control" value="<?php echo e($product->weight_in_kg); ?>" name="weight_in_kg" id="edit_weight_in_kg" placeholder="Weight" oninput="this.value = this.value.replace(/[^0-9.]/g, '')"> <span class="label label-danger" id="edit_weight_in_kg_error" style="display: none;"></span> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="hindi_name">Hindi Name</label> <input type="text" class="form-control convertHindi" value="<?php echo e($product->hindi_name); ?>" name="hindi_name" id="hindi_name" placeholder="Product Name"> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" id="editCompanyBtn" class="btn btn-primary" onclick="updateProduct()">Submit</button> </div> </form> <?php /**PATH /home/sjslayjy/public_html/devlok/resources/views/dashboard/master/edit-product.blade.php ENDPATH**/ ?>