/
var
/
www
/
html
/
gnet_live
/
storage
/
framework
/
views
/
Upload File
HOME
<form id="form_edit" class="form_edit" method="post" action="<?php echo e(route('product.update', $product->id)); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-group"> <label for="deskripsi">Name:</label> <input class="form-input" type="text" id="name" name="name" required value="<?php echo e(@$product->name); ?>"> </div> <div class="form-group"> <label for="deskripsi">Url:</label> <input class="form-input" type="text" id="url" name="url" required value="<?php echo e(@$product->url); ?>"> </div> <div class="form-group"> <label for="page">Category:</label> <select name="category_id"> <?php $__currentLoopData = json_decode(@$categories); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ctg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($ctg->id); ?>" <?php echo e($ctg->id == $product->category_id ? 'selected' : ''); ?>> <?php echo e($ctg->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="page">Brand:</label> <select name="brand_id"> <?php $__currentLoopData = json_decode(@$brand); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brnd): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($brnd->id); ?>" <?php echo e($brnd->id == $product->brand_id ? 'selected' : ''); ?>> <?php echo e($brnd->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="cta">Meta Title: <span class="inline-color-red">*</span></label> <textarea class="form-input" id="meta_title" name="meta_title"><?php echo e(@$product->meta_title); ?></textarea> </div> <div class="form-group"> <label for="cta">Meta Description: <span class="inline-color-red">*</span></label> <textarea class="form-input" id="meta_desc" name="meta_desc"><?php echo e(@$product->meta_desc); ?></textarea> </div> <div class="form-group"> <label for="deskripsi">Keywords:</label> <input class="form-input" type="text" id="keywords" name="keywords" required value="<?php echo e(@$product->keywords); ?>"> </div> <div class="form-group"> <label for="cta">Short Text: <span class="inline-color-red">*</span></label> <textarea class="form-input" id="short_text" name="short_text"><?php echo e(@$product->short_text); ?></textarea> </div> <div class="form-group"> <label for="cta">Information Product:</label> <textarea class="form-input" id="product_info" name="product_info"><?php echo e(@$product->product_info); ?></textarea> </div> <div class="form-group"> <label for="cta">Additional Information:</label> <textarea class="form-input" id="additional_info" name="additional_info"><?php echo e(@$product->additional_info); ?></textarea> </div> <div class="form-group mb-4"> <label for="description">Tags:</label> <select name="tags[]" id="multiple-select" multiple> <?php $__currentLoopData = $tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($tag->id); ?>" <?php echo e($product->tags->contains($tag->id) ? 'selected' : ''); ?>> <?php echo e($tag->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="cta">WhatsApp Text:</label> <textarea class="form-input" id="wa_text" name="wa_text"><?php echo e(@$product->wa_text); ?></textarea> </div> <div class="form-group"> <label for="catalogue">Catalogue</label> <select name="catalogue_id" class="coba-select-search"> <option value="">Choose Catalogue</option> <?php $__currentLoopData = json_decode(@$catalogue); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $catalog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($catalog->id); ?>" <?php echo e($catalog->id == $product->catalogue_id ? 'selected' : ''); ?>> <?php echo e($catalog->catalogue_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="text-end mt-3"> <input id="btn-save" type="submit" class="primary__btn"> </div> </form> <script nonce="<?php echo e($nonce); ?>"> let multipleSelect = new MultipleSelect('#multiple-select', { placeholder: 'Pilih Tag', }) </script> <?php /**PATH /var/www/html/gnet_live/resources/views/edit/edit-product.blade.php ENDPATH**/ ?>