<ul class="list-product">
    <?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
            $pro_unit = findProductUnitByCode($row->barcode, 'product');
            ?>
            <?php if($pro_unit): ?>
                <?php
                $my_p = getProductById($row->product_id);
                $id = $pro_unit ? $pro_unit->id : "";
                $product_name = $my_p ? $my_p->product_name : "";
                $barcode = $row ? $row->barcode : "";
                $size = findSize($pro_unit ? $pro_unit->size_id : 0);
                $category_name = $my_p ? optional($my_p->get_category)->category_name : "";
                $user_currency = user_currency();
                $unit = findUnit($pro_unit->unit_id);
                if ($type) {
                    if ($user_currency->id == 2) {
                        $price = $pro_unit->wholesale_price_usd;
                    } else if ($user_currency->id == 3) {
                        $price = $pro_unit->wholesale_price_baht;
                    }
                } else {
                    if ($user_currency->id == 2) {
                        $price = $pro_unit->retail_price_usd;
                    } else if ($user_currency->id == 3) {
                        $price = $pro_unit->retail_price_baht;
                    }
                }


                ?>
                <li class="listings cursor" title="<?php echo e($product_name); ?> (Size:<?php echo e($size?$size->size:''); ?>)"
                    data-name="<?php echo e($product_name); ?>"
                    data-stock="<?php echo e($row->sum_stock); ?>"
                    data-code="<?php echo e($barcode); ?>"
                    data-price="<?php echo e($price); ?>"
                    data-currency="<?php echo e($user_currency->id); ?>"
                    data-symbol="<?php echo e($user_currency->symbol); ?>"
                    data-size="<?php echo e($size?$size->size:''); ?>"
                    data-unit="<?php echo e($unit?$unit->unit:''); ?>"
                    data-id="<?php echo e($id); ?>" style="border: 1px solid rgb(51, 122, 183)">
                    <div class="bg-img" style="
                        background: url(<?php echo e(findImg($my_p)); ?>);
                        height: 10.5vh;
                        width: 100%;
                        background-position: center;
                        background-size: cover;
                        background-repeat: no-repeat;
                        ">
                                <span style="
                                background: #337ab7;
                                font-weight: 100;
                                border-radius: 0 0 4px 0;
                                position: absolute;
                    " class="label text-center size_label"><?php echo e($row->sum_stock); ?> ក្នុងស្តុក</span>
                    </div>
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center" style="
                                   padding: 0px;
                                   background: #337ab7;
                                   color: white;
                                   ">
                    <span style="font-size: 12px"><?php echo e($barcode); ?> <br><?php echo e(__('administrator.size')); ?>  <?php echo e($size->size); ?>

                        <br> <?php echo e(str_limit($product_name,15)); ?></span>
                    </div>
                </li>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
</ul>
<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/pos/seller-request/result-create.blade.php ENDPATH**/ ?>