<div class="col-md-<?php echo e($col); ?> posItem">
    <div class="image">
        <a class="addFirstUnit" href="#">
            <img src="<?php echo e(optional($item->getFirstMedia('images'))->getUrl() ?: asset('icons/p.png')); ?>">
            <p class="prodname">
                <?php echo e($item->name); ?>

            </p>
        </a>
    </div>
    <div class="prices">
        <?php if($item->is_service == 1): ?>
            <p>
                <a unitname="خدمة" prodname="<?php echo e($item->name); ?>" unit_id="خدمة" href="#" cost="0"
                    prodid="<?php echo e($item->id); ?>" prodprice="<?php echo e($item->last_cost); ?>" class="itemCard">

                    <span class="label label-success">
                        <i class="fa fa-shopping-cart"></i>
                        <?php echo e($item->last_cost); ?>

                        <?php echo e(currency()->getCurrency()['symbol'] ?? ''); ?></span>
                </a>
            </p>
        <?php else: ?>
            <?php $__currentLoopData = $item->productUnit; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $unit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    $sale_price = $unit->pivot->sale_price;
                ?>
                <p>
                    <a unitname="<?php echo e($unit->name); ?>" prodname="<?php echo e($item->name); ?>" unit_id=<?php echo e($unit->id); ?>

                        href="#" cost="<?php echo e($unit->pivot->cost_price); ?>" prodid="<?php echo e($item->id); ?>"
                        prodprice="<?php echo e($sale_price); ?>" class="itemCard">

                        <span class="label label-warning"><?php echo e($unit->name); ?>:
                            <?php echo e($sale_price); ?>

                            <?php echo e(currency()->getCurrency()['symbol'] ?? ''); ?></span>
                    </a>
                </p>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
    </div>

</div>
