<?php
use App\Model\product\ProductImageModel;
?>
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php

    $barcode = $row->barcode;
    if(user_currency()->id==1){
        $cost = $row->cost_riel;
    }else{
        $cost = $row->cost_usd;
    }
    $img = ProductImageModel::where('product_id',$row->id ??'')->first()->images??'';
    ?>
    <div class="col-lg-3 col-md-6 po-box" title="<?php echo e($row->product_name); ?> (<?php echo e(findUnit($row->unit_id)->unit); ?>)">
        <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-currency="<?php echo e($row->currency); ?>"
               data-symbol="<?php echo e(user_currency()->symbol); ?>"
               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(findImg($img)); ?>);
                    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>
                </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/fabric/result-create.blade.php ENDPATH**/ ?>