Viewing file: f43930b2c826cbb5319fe5a5668c5b3a.php (3.28 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="tab-pane" id="tab-image"> <div class="pl-lg-4 row"> <div class="table-responsive"> <table class="table align-items-center table-flush" id="tbl"> <thead class="thead-dark"> <tr> <th scope="col" class="sort" data-sort="status">Image</th> <th scope="col" class="sort" data-sort="status">Sort Order</th> </tr> </thead> <tbody class="list">
<?php $__empty_1 = true; $__currentLoopData = $product->images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr class="tr_clone"> <input type="hidden" name="product_image[id][]" value="<?php echo e($value->id); ?>"> <td> <input type="file" name="product_image[image][]" id="image<?php echo e($key); ?>" class="form-control form-control-alternative<?php echo e($errors->has('image') ? ' is-invalid' : ''); ?>" value="<?php echo e($value->image); ?>"> <a target="_blank" href="<?php echo e(url(config('constant.file_path.product')."/$value->image")); ?>">View Image</a> </td> <td class="budget"> <input type="number" min="1" name="product_image[sort_order_image][]" id="sort_order_image0" value="<?php echo e(old('sort_order_image', $value->sort_order_image)); ?>" class="form-control form-control-alternative<?php echo e($errors->has('sort_order_image') ? ' is-invalid' : ''); ?>" ></td> <td> <button class="btn btn-danger" type="button" id="DeleteButton" ><icon class="fa fa-minus" /></button> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr class="tr_clone"> <td><input type="file" name="product_image[image][]" id="image0" class="form-control form-control-alternative<?php echo e($errors->has('image') ? ' is-invalid' : ''); ?>" value="<?php echo e(old('image', '')); ?>" ></td> <td class="budget"> <input type="number" min="1" name="product_image[sort_order_image][]" id="sort_order_image0" value="<?php echo e(old('sort_order_image', '')); ?>" class="form-control form-control-alternative<?php echo e($errors->has('sort_order_image') ? ' is-invalid' : ''); ?>" ></td> <td> <button class="btn btn-danger" type="button" id="DeleteButton" ><icon class="fa fa-minus" /></button> </td> </tr> <?php endif; ?> </tbody> <tfoot> <tr> <td style="text-align:right" colspan="5"> <button type="button" class="btn btn-primary addRowButton" ><icon class="fa fa-plus" /></button> </td> </tr> </tfoot> </table> </div> </div> </div> <?php /**PATH /home2/smabmart/public_html/resources/views/admin/product/tabs/edit_tabs/image.blade.php ENDPATH**/ ?>
|