관리-도구
편집 파일: ea414f775c7e1735de871d1187a85b5c.php
<div class="additional-image-column-section <?php echo e($product['product_type'] == 'digital' ? 'col-md-8' : 'col-md-12'); ?>"> <div class="card card-body h-100"> <div class="mb-20"> <h3 class="mb-1"><?php echo e(translate('Product_Additional_Images')); ?></h3> <p class="fs-12 mb-0"> <?php echo e(translate('Upload_additional_images_for_this_product_from_here.')); ?> <span class="text-info"> <?php echo e(getFileUploadFormats(skip: '.svg, .gif', asBladeMessage: true).' '. translate('Image_size'). ' : '. translate('Max').' '. getFileUploadMaxSize() . 'MB'); ?> (<?php echo e(THEME_RATIO[theme_root_path()]['Product Image']); ?>) </span> </p> </div> <div class="d-flex flex-column bg-section rounded-10" id="additional_Image_Section"> <div class="position-relative"> <div class="multi_image_picker d-flex gap-20 p-3" data-ratio="1/1" data-field-name="images[]" data-max-filesize="<?php echo e(getFileUploadMaxSize()); ?>" data-allowed-formats="<?php echo e(getFileUploadFormats(skip: '.svg,.gif')); ?>" data-validation-error-msg="<?php echo e(translate('File_size_is_too_large_Maximum_').' '.getFileUploadMaxSize().' '.'MB'); ?>" > <div> <div class="imageSlide_prev"> <div class="d-flex justify-content-center align-items-center h-100"> <button type="button" class="btn btn-circle border-0 bg-primary text-white"> <i class="fi fi-sr-angle-left"></i> </button> </div> </div> <div class="imageSlide_next"> <div class="d-flex justify-content-center align-items-center h-100"> <button type="button" class="btn btn-circle border-0 bg-primary text-white"> <i class="fi fi-sr-angle-right"></i> </button> </div> </div> </div> <?php if(count($product->colors) == 0): ?> <?php $__currentLoopData = $product->images_full_url; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php ($unique_id = rand(1111, 9999)); ?> <div class="upload-file m-0 position-relative"> <?php if(request('product-gallery')): ?> <button type="button" class="remove_btn btn btn-danger btn-circle w-20 h-20 fs-8 delete_file_input_css remove-addition-image-for-product-gallery" data-section-remove-id="addition-image-section-<?php echo e($key); ?>"> <i class="fi fi-sr-cross"></i> </button> <?php else: ?> <a class="delete_file_input_css remove_btn btn btn-danger btn-circle w-20 h-20 fs-8" href="<?php echo e(route('admin.products.delete-image', ['id' => $product['id'], 'name' => $photo['key']])); ?>"> <i class="fi fi-rr-cross"></i> </a> <?php endif; ?> <label class="upload-file__wrapper"> <img class="upload-file-img" loading="lazy" id="additional_Image_<?php echo e($unique_id); ?>" src="<?php echo e(getStorageImages(path: $photo, type: 'backend-product')); ?>" data-default-src="<?php echo e(getStorageImages(path: $photo, type: 'backend-product')); ?>" alt=""> <?php if(request('product-gallery')): ?> <input type="text" name="existing_images[]" value="<?php echo e($photo['key']); ?>" hidden> <?php endif; ?> </label> <div class="overlay"> <div class="d-flex gap-10 justify-content-center align-items-center h-100"> <button type="button" class="btn btn-outline-info icon-btn view_btn" data-img="#additional_Image_<?php echo e($unique_id); ?>"> <i class="fi fi-sr-eye"></i> </button> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <?php if($product->color_image): ?> <?php $__currentLoopData = $product->color_images_full_url; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($photo['color'] == null): ?> <?php ($unique_id = rand(1111, 9999)); ?> <div class="upload-file m-0 position-relative"> <a class="delete_file_input_css remove_btn btn btn-danger btn-circle w-20 h-20 fs-8" href="<?php echo e(route('admin.products.delete-image', ['id' => $product['id'], 'name' => $photo['image_name']['key']])); ?>"> <i class="fi fi-rr-cross"></i> </a> <label class="upload-file__wrapper"> <img class="upload-file-img" loading="lazy" id="additional_Image_<?php echo e($unique_id); ?>" src="<?php echo e(getStorageImages(path: $photo['image_name'], type: 'backend-product')); ?>" data-default-src="<?php echo e(getStorageImages(path: $photo['image_name'], type: 'backend-product')); ?>" alt=""> </label> <div class="overlay"> <div class="d-flex gap-10 justify-content-center align-items-center h-100"> <button type="button" class="btn btn-outline-info icon-btn view_btn" data-img="#additional_Image_<?php echo e($unique_id); ?>"> <i class="fi fi-sr-eye"></i> </button> </div> </div> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <?php $__currentLoopData = $product->images_full_url; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php ($unique_id = rand(1111, 9999)); ?> <div class="" id="addition-image-section-<?php echo e($key); ?>"> <div class="upload-file m-0 position-relative"> <?php if(request('product-gallery')): ?> <button type="button" class="remove_btn btn btn-danger btn-circle w-20 h-20 fs-8 delete_file_input_css remove-addition-image-for-product-gallery" data-section-remove-id="addition-image-section-<?php echo e($key); ?>"> <i class="fi fi-sr-cross"></i> </button> <?php else: ?> <a class="delete_file_input_css remove_btn btn btn-danger btn-circle w-20 h-20 fs-8" href="<?php echo e(route('vendor.products.delete-image', ['id' => $product['id'], 'name' => $photo['key']])); ?>"> <i class="fi fi-rr-cross"></i> </a> <?php endif; ?> <label class="upload-file__wrapper"> <img class="upload-file-img" loading="lazy" id="additional_Image_<?php echo e($unique_id); ?>" src="<?php echo e(getStorageImages(path: $photo, type: 'backend-product')); ?>" data-default-src="<?php echo e(getStorageImages(path: $photo, type: 'backend-product')); ?>" alt=""> <?php if(request('product-gallery')): ?> <input type="text" name="existing_images[]" value="<?php echo e($photo['key']); ?>" hidden> <?php endif; ?> </label> <div class="overlay"> <div class="d-flex gap-10 justify-content-center align-items-center h-100"> <button type="button" class="btn btn-outline-info icon-btn view_btn" data-img="#additional_Image_<?php echo e($unique_id); ?>"> <i class="fi fi-sr-eye text-info"></i> </button> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <?php endif; ?> </div> </div> </div> </div> </div> <?php /**PATH /home2/slnssare/public_html/resources/views/admin-views/product/update/_additional-images.blade.php ENDPATH**/ ?>