
    <?php if(@$stock_item && count($stock_item) > 0): ?>
        <?php $__currentLoopData = $stock_item; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
            $p_unit = findProductUnitByCode($row->barcode,'product');
            $my_p = getProductById($row->product_id);
            $id = $p_unit ? $p_unit->id : "";
            $product_name = $my_p ? $my_p->product_name : "";
            $barcode = $row ? $row->barcode : "";
            $size = findSize($p_unit->size_code)->size ?? '';
            $color = findColor($p_unit->color_code)->name ?? '';
            $bg = '';
            if (!$p_unit) {
                $bg = 'red';
            }
            ?>

            <div class="col-lg-3 col-md-6 po-box cursor listings" title="<?php echo e($product_name); ?> ( <?php echo e($size.','.$color); ?> )"
                 data-name="<?php echo e($product_name); ?>"
                 data-stock="<?php echo e($row->stock_qty); ?>"
                 data-code="<?php echo e($barcode); ?>"
                 data-size="<?php echo e($size); ?>"
                 data-color="<?php echo e($color); ?>"
                 data-id="<?php echo e($id); ?>">
                <div class="btn btn-default" style="width: 100%">
                    <span style="
                                left: 10px;
                                top: 10px;
                                background: #337ab7;
                                font-weight: 100;
                                border-radius: 0 0 4px 0;
                                position: absolute;
                    " class="label text-left"><?php echo e($row->stock_qty); ?> ក្នុងស្តុក</span>
                    <div class="bg-img" style="
                        background: url(<?php echo e(findImgByCode($my_p->barcode)); ?>);
                        height: 150px;
                        width: 100%;
                        background-position: center;
                        background-size: cover;
                        background-repeat: no-repeat;
                        ">
                    </div>
                    <ul class="item-show-name">
                        <li><?php echo e($barcode); ?></li>
                        <li><?php echo e(str_limit($product_name,35)); ?></li>
                        <li>( <?php echo e($size.','.$color); ?> )</li>
                    </ul>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
<div class="col-sm-12 col-xs-12">
    <div class="pagin">
        <?php if(@$stock_item): ?>
            <?php echo $stock_item->render(); ?>

        <?php endif; ?>
    </div>
</div>
<?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/stock-inventory/transfer/transfer-stock/result-create.blade.php ENDPATH**/ ?>