HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.shooperm.com/storage/framework/views/e9d35d0c75e0c67f0e0642332a13dc41f806762c.php
<?php if(count($combinations[0]) > 0): ?>
    <table class="table table-bordered sku_table">
        <thead>
        <tr>
            <td width="10%" class="text-center">
                <label for="" class="control-label"><?php echo e(__('product.variant')); ?></label>
            </td>

            <td width="20%" class="text-center">
                <label for="" class="control-label"><?php echo e(__('product.selling_price')); ?></label>
            </td>
            <?php if(!isModuleActive('MultiVendor')): ?>
                <td width="13%" class="text-center stock_td d-none">
                    <label for="" class="control-label"><?php echo e(__('product.stock')); ?></label>
                </td>
            <?php endif; ?>
            <td width="11%" class="text-center">
                <label for="" class="control-label"><?php echo e(__('product.SKU')); ?></label>
            </td>


            <td width="20%" class="text-center variant_physical_div">
                <label for="" class="control-label"><?php echo e(__('common.image')); ?> (165x165)PX</label>
            </td>
            <td width="15%" class="text-center variant_digital_div">
                <label for="" class="control-label"><?php echo e(__('product.file')); ?></label>
            </td>
        </tr>
        </thead>
        <tbody>
        <?php
            $valIncre = 1;
            $imgIncrement = 0;

        ?>

        <?php $__currentLoopData = $combinations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $combination): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
                $sku = '';
                $ttt = $key;
                foreach (explode(' ', $product_name) as $key => $value) {
                    $sku .= substr($value, 0, 1);
                }

                $str = '';
                $str_id = '';
                $attribute_id = '';
                foreach ($combination as $key => $items){
                    $item_value = \Modules\Product\Entities\AttributeValue::find($items);
                    if ($item_value->attribute_id == 1) {
                        $item = $item_value->color->name;
                    }else {
                        $item = $item_value->value;
                    }
                    if($key > 0 ){
                        $attribute_id .= '-'.str_replace(' ', '', $attribute[$key]);
                        $str_id .= '-'.str_replace(' ', '', $items);
                        $str .= '-'.str_replace(' ', '', $item);
                        $sku .='-'.str_replace(' ', '', $item);
                    }else {
                        $attribute_id .= str_replace(' ', '', $attribute[$key]);
                        $str_id .= str_replace(' ', '', $items);
                        $str .= str_replace(' ', '', $item);
                        $sku .= '-'.str_replace(' ', '', $item);
                    }
                }

                $valIncre +=$valIncre;
                $imgIncrement += 1;

                $query_1 = @$product->skus->where('track_sku', $sku)->first();
                if(isModuleActive('WholeSale')){
                    $sellerProductInfo = \Modules\Seller\Entities\SellerProduct::where('product_id', @$product->id)->first();
                    $sellerProductSKU = \Modules\Seller\Entities\SellerProductSKU::where('product_id', @$sellerProductInfo->id)->where('product_sku_id', @$query_1->id)->first();
                    $wholesalePriceInfo = \Modules\WholeSale\Entities\WholesalePrice::where('product_id', @$sellerProductInfo->id)->where('sku_id', @$sellerProductSKU->id)->get();
                }

            ?>
            <?php if(strlen($str) > 0): ?>
                <tr class="variant text-center">
                    <td class="">
                        <input type="hidden" name="str_attribute_id[]" value="<?php echo e($attribute_id); ?>">
                        <input type="hidden" name="str_id[]" value="<?php echo e($str_id); ?>">
                        <label for="" class="control-label mt-30"><?php echo e($str); ?></label>
                    </td>

                    <td class="">
                        <input class="mt-1 mt-30 selling_price style_selling_price_field" type="number" name="selling_price_sku[]"
                               value="<?php echo e(($query_1) ? @$query_1->selling_price : "0"); ?>" min="0"
                               step="<?php echo e(step_decimal()); ?>" class="form-control" required>
                        <?php if(isModuleActive('WholeSale') && !isModuleActive('MultiVendor')): ?>
                            <button type="button" data-toggle="modal" tabindex="-1"
                                    data-target="#variant_wholesale_price_modal_<?php echo e($sku.$ttt); ?>"
                                    class="btn btn-sm style_plus_icon mt-1 add_variant_whole_sale_price">
                                <i class="ti-plus"></i>
                            </button>
                            <!-- Append WholeSale Price  -->
                            <ul id="append_w_p<?php echo e($sku.$ttt); ?>">
                                <?php $__currentLoopData = $wholesalePriceInfo; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $w_s_p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li>Range:(<?php echo e($w_s_p->min_qty.'-'.$w_s_p->max_qty.')    $'.$w_s_p->selling_price); ?></li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                        <?php endif; ?>
                    </td>

                    <?php if(!isModuleActive('MultiVendor')): ?>
                        <td class="text-center pt-20 stock_td d-none">
                            <input class="primary_input_field mt-30" type="number" name="sku_stock[]"
                                   value="<?php echo e(($query_1) ? @$query_1->product_stock : "0"); ?>" min="0" step="0"
                                   class="form-control" required>
                        </td>
                    <?php endif; ?>
                    <td class="pt-25">
                        <input class="primary_input_field mt-20" type="text" name="sku[]"
                               value="<?php echo e(($query_1) ? @$query_1->sku : $sku); ?>" class="form-control">
                        <input type="hidden" name="track_sku[]" value="<?php echo e($sku); ?>">
                    </td>


                    <td class="variant_physical_div text-center pt_2">
                        <div class="primary_input">

                            <div class="primary_file_uploader mt-25" data-toggle="amazuploader" data-multiple="false"
                                 data-type="image" data-name="variant_image_<?php echo e($imgIncrement); ?>">
                                <input class="primary-input file_amount" type="text"
                                       id="variant_image_file_<?php echo e($valIncre); ?>" placeholder="<?php echo e(__("common.image")); ?>"
                                       readonly="">
                                <button class="" type="button">
                                    <label class="primary-btn small fix-gr-bg"
                                           for="variant_image_<?php echo e($valIncre); ?>"><?php echo e(__("product.Browse")); ?> </label>

                                    <input type="hidden" class="selected_files"
                                           value="<?php echo e(@$query_1->variant_image_media->media_id); ?>">
                                </button>
                            </div>
                            <div class="product_image_all_div variant_image">
                                <?php if(@$query_1->variant_image_media == null && @$query_1->variant_image): ?>

                                    <img id="variantImgDiv_<?php echo e($valIncre); ?>" class="variantImgDiv"
                                         src="<?php echo e(showImage(@$query_1->variant_image?@$query_1->variant_image:'backend/img/default.png')); ?>"
                                         alt="">

                                <?php else: ?>
                                    <input type="hidden" name="variant_image_<?php echo e($imgIncrement); ?>" class="product_images_hidden" value="<?php echo e(@$query_1->variant_image_media->media_id); ?>">
                                <?php endif; ?>
                            </div>
                        </div>
                    </td>

                    <td class="variant_digital_div text-center">
                        <div class="primary_input">
                            <?php
                                $digital_file = @$query_1->digital_file->file_source;
                            ?>
                            <?php if($digital_file): ?>
                                <a class="link_color"
                                   href="<?php echo e(asset(asset_path(@$query_1->digital_file->file_source))); ?>"
                                   download><?php echo e(__('product.download_link')); ?></a>
                            <?php endif; ?>
                            <div class="primary_file_uploader">
                                <input class="primary-input mt-30" type="text" id="variant_digital_file_<?php echo e($valIncre); ?>"
                                       placeholder="<?php echo e(__("common.file")); ?>" readonly="">
                                <button class="mt-30" type="button">
                                    <label class="primary-btn small fix-gr-bg"
                                           for="digital_file_<?php echo e($valIncre); ?>"><?php echo e(__("product.Browse")); ?> </label>
                                    <input type="file" class="d-none variant_digital_file_change" name="digital_file[]"
                                           id="digital_file_<?php echo e($valIncre); ?>"
                                           data-name_id="variant_digital_file_<?php echo e($valIncre); ?>">
                                </button>
                            </div>
                        </div>
                    </td>
                </tr>
            <?php endif; ?>
            <?php if(isModuleActive('WholeSale')): ?>
                <?php echo $__env->make('wholesale::components._edit_variant_wholesale_price_modal', ['modalTargetId'=> $sku.$ttt, 'incKey'=>$ttt, 'wholesalePriceInfo'=>$wholesalePriceInfo], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
<?php endif; ?>
<?php /**PATH /www/wwwroot/www.shooperm.com/Modules/Product/Resources/views/products/sku_combinations_edit.blade.php ENDPATH**/ ?>