/
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('productImage.update', $productImage->id)); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <?php if(!is_null($productImage->product_id)): ?> <div class="form-group"> <label for="page">Product:<span class="contact__form--label__star">*</span></label> <select name="product_id"> <?php $__currentLoopData = json_decode(@$product); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $prdk): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($prdk->id); ?>" <?php echo e($prdk->id == $productImage->product_id ? 'selected' : ''); ?>> <?php echo e($prdk->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <?php else: ?> <div class="form-group"> <label for="page">Product Type (SubProduct):<span class="contact__form--label__star">*</span></label> <select name="product_type_id"> <?php $__currentLoopData = json_decode(@$subproduct); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($type->id); ?>" <?php echo e($type->id == $productImage->product_type_id ? 'selected' : ''); ?>> <?php echo e($type->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <?php endif; ?> <div class="form-group"> <label for="headline">Image HD:<span class="contact__form--label__star">*</span></label> <input class="form-input" type="file" id="image_hd" name="image_hd" accept="image/*"> <small class="text-primary">Max. Size 2 MB | 1025 x 769</small> <p class="mb-3"> <small>Existing File:</small> <a href="<?php echo e(asset('assets/img/products/' . $productImage->image_hd)); ?>" target="_blank"><?php echo e($productImage->image_hd); ?></a> </p> </div> <div class="form-group"> <label for="headline">Image Low:</label> <input class="form-input" type="file" id="image_low" name="image_low" accept="image/*"> <small class="text-primary">Max. Size 2 MB | 1025 x 769</small> <?php if(!is_null($productImage->image_low)): ?> <p class="mb-3"> <small>Existing File:</small> <a href="<?php echo e(asset('assets/img/products/' . $productImage->image_low)); ?>" target="_blank"><?php echo e($productImage->image_low); ?></a> </p> <?php endif; ?> </div> <div class="form-group"> <label for="headline">Image HD Mobile:</label> <input class="form-input" type="file" id="image_hd_mobile" name="image_hd_mobile" accept="image/*"> <small class="text-primary">Max. Size 2 MB | 1025 x 769</small> <?php if(!is_null($productImage->image_hd_mobile)): ?> <p class="mb-3"> <small>Existing File:</small> <a href="<?php echo e(asset('assets/img/products/' . $productImage->image_hd_mobile)); ?>" target="_blank"><?php echo e($productImage->image_hd_mobile); ?></a> </p> <?php endif; ?> </div> <div class="form-group"> <label for="headline">Image Low Mobile:</label> <input class="form-input" type="file" id="image_low_mobile" name="image_low_mobile" accept="image/*"> <small class="text-primary">Max. Size 2 MB | 1025 x 769</small> <?php if(!is_null($productImage->image_low_mobile)): ?> <p class="mb-3"> <small>Existing File:</small> <a href="<?php echo e(asset('assets/img/products/' . $productImage->image_low_mobile)); ?>" target="_blank"><?php echo e($productImage->image_low_mobile); ?></a> </p> <?php endif; ?> </div> <div class="form-group"> <label for="deskripsi">Alt Text:</label> <input class="form-input" type="text" id="alt_text" name="alt_text" value="<?php echo e(@$productImage->alt_text); ?>"> </div> <!-- --> <div class="text-end mt-3"> <input id="btn-save" type="submit" class="primary__btn"> </div> </form> <?php /**PATH /var/www/html/gnet_live/resources/views/edit/edit-image.blade.php ENDPATH**/ ?>