
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php
    $barcode = $row->barcode;
    $color = \App\Model\product\ColorModel::where('code',$row->color_code)->first();
    $size = \App\Model\product\SizeModel::where('code',$row->size_code)->first();
    $product = getProductById($row->product_id);
    $cost = getProductPrice($row,'purchase');

    ?>
    <div class="col-lg-3 col-md-6 po-box" title="<?php echo e($row->product_name); ?> (<?php echo e(($size?$size->size:'').','.($color?$color->name:'')); ?>)">
        <div class="btn btn-default" style="width: 100%">
            <a class="add-product cursor"
               data-name="<?php echo e($row->product_name); ?>"
               data-code="<?php echo e($barcode); ?>"
               data-price = "<?php echo e($cost); ?>"
               data-size="<?php echo e($size?$size->size:''); ?>"
               data-color="<?php echo e($color->name??""); ?>"
               data-unit="<?php echo e(findUnit($row->unit_id)->unit??''); ?>"
               data-id="<?php echo e($row->id); ?>">
                <div class="bg-img" style="
                    background: url(<?php echo e(findImgByCode($product->barcode)); ?>);
                    height: 180px;
                    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($row->product_name,35)); ?></li>
                    <li>(<?php echo e(($size?$size->size:'').','.($color?$color->name:'')); ?>)</li>
                </ul>
            </a>
        </div>
    </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<div class="col-sm-12 col-xs-12">
    <div class="pagin">
        <?php echo $products->render(); ?>

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