
<?php Fun::lang() ?>
<div class="page-purchases">
    <div class="container-fluid">
        <div class="top-content">
            <div class="row1">
                <div class="col-sm-12 col-xs-12">
                    <h2 class="show-product"><?php echo e(__('administrator.info_detail')); ?> </h2>
                    <hr>
                </div>
            </div>
        </div>
        <hr>
        <hr>
        <div class="summary-header">
            <table>
                <tr>
                    <td>
                        <table class="text-left">
                            <tr>
                                <td>
                                    <?php echo e(__('administrator.item_name')); ?>

                                </td>
                                <td>
                                    : <?php echo e($data['product_name']); ?>

                                </td>
                            </tr>
                            <tr>
                                <td><?php echo e(__('administrator.created_at')); ?></td>
                                <td> : <?php echo e(date('d-m-Y',strtotime($data['created_at']))); ?> </td>
                            </tr>
                        </table>
                    </td>
                    <td width="30%">
                        <img src="<?php echo e(findImg(\App\Model\product\ProductModel::find($data['product_id']))); ?>" width="70%">
                    </td>
                </tr>
            </table>
        </div>
        <div class="wrapper-table">
            <table class="table table-striped table-hover ">
                <thead>
                <tr>
                    <th>#</th>
                    <th><?php echo e(__('administrator.barcode')); ?></th>
                    <th><?php echo e(__('administrator.size')); ?></th>
                    <th><?php echo e(__('administrator.qty_per_unit')); ?></th>
                    <th><?php echo e(__('administrator.cost')); ?></th>
                    <th><?php echo e(__('administrator.barcode')); ?></th>
                </tr>
                </thead>
                <tbody>
                <?php $__currentLoopData = $cut_piece_unit; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><?php echo e($key+1); ?></td>
                        <td><?php echo e($value->barcode); ?> </td>
                        <td><?php echo e(findSize($value->size_id)->size); ?> </td>
                        <td><?php echo e($value->qty_per_unit); ?> </td>
                        <td><?php echo e($data['currency']); ?> <?php echo e(number_format($value->cost,2)); ?></td>
                        <td class="print_barcode"><?php if($value->barcode): ?><img src="data:image/png;base64,<?php echo e(DNS2D::getBarcodePNG($value->barcode, 'QRCODE')); ?>" alt="barcode" /> <?php endif; ?></td>
                    </tr>

                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/setup-item/product-cut-piece/show.blade.php ENDPATH**/ ?>