<div class="list-product col-lg-12">
    <?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
            $product_unit = \App\Model\product\ProductUnitModel::where(['product_id' => $row->product_id])->pluck('unit_id');
            $p_unit = \App\Model\product\ProductUnitModel::where(['product_id' => $row->product_id])->where('type', 'parent')->first();
            $c_unit = \App\Model\product\ProductUnitModel::where(['product_id' => $row->product_id])->where('type', 'child')->first();
            $unit = \App\Model\product\UnitModel::whereIn('id', $product_unit)->pluck('unit', 'id');
            $unit_html = '';
            foreach ($unit as $key => $u) {
                $unit_html .= '<option value="' . $key . '">' . $u . '</option>';
            }
            $id = $row->product_id;
            $my_p = getProductById($id);
            $product_name = $my_p ? $my_p->product_name : "";
            $barcode = $my_p ? $my_p->barcode : "";
            $stock_qty = getStockQty($id, $row->stock_qty);
            ?>
            <div class="col-lg-3 col-md-6 po-box" title="<?php echo e($product_name); ?>">
                <div class="btn btn-default">
                    <a class="listings cursor"
                       data-name="<?php echo e($product_name); ?>"
                       data-barcode="<?php echo e($barcode); ?>"
                       data-unit="<?php echo e($unit_html); ?>"
                       data-id="<?php echo e($id); ?>">
                        <img src="<?php echo e(findImg($my_p)); ?>">
                        <ul class="item-show-name">
                            <li><?php echo e(str_limit($product_name,25)); ?></li>
                            <li><?php echo e($barcode); ?></li>
                        </ul>
                        <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($stock_qty); ?>

                                   ក្នុងស្តុក</span>
                    </a>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
</div>
<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-material/result-create.blade.php ENDPATH**/ ?>