
<?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">
                    
                    <img src="<?php echo e(headerlogo()); ?>" alt="">
                    <hr>
                </div>
            </div>
        </div>
        <hr>
        <hr>
        <div class="summary-header">
            <table>
                <tr>
                    <td>
                        <table class="text-left">
                            <tr>
                                <td><?php echo e(__('administrator.invoice_number')); ?></td>
                                <td> : <?php echo e($tran->invoice_number); ?> </td>
                            </tr>
                            <tr>
                                <td><?php echo e(__('administrator.from_warehouse')); ?></td>
                                <td> :  <?php echo e(findWarehouse($tran->from_warehouse_id)->warehouse_name); ?></td>
                            </tr>
                            <tr>
                                <td><?php echo e(__('administrator.to_warehouse')); ?></td>
                                <td> :  <?php echo e(findWarehouse($tran->to_warehouse_id)->warehouse_name); ?></td>
                            </tr>
                            <tr>
                                <td><?php echo e(__('administrator.created_at')); ?></td>
                                <td> : <?php echo e(date('d-m-Y',strtotime($tran['date']))); ?> </td>
                            </tr>
                            <tr>
                                <td><?php echo e(__('administrator.description')); ?></td>
                                <td> : <?php echo e($tran->note); ?> </td>
                            </tr>
                        </table>
                    </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.item')); ?></th>
                    <th><?php echo e(__('administrator.qty')); ?></th>
                    <th>U/M</th>
                </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $tran_detail; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            $product = getProductById($value->product_id);
                        ?>
                        <tr>
                            <td><?php echo e($key+=1); ?></td>
                            <td><?php echo e($value->barcode); ?> </td>
                            <td><?php echo e($product->product_name); ?> </td>
                            <td><?php echo e($value->qty); ?> <?php echo e(findUnit($product->unit_id)->unit); ?></td>
                            <td><?php echo e($value->qty_per_unit); ?> <?php echo e(findUnit($product->child_unit)->unit); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        $key=0;
                        $total_row = 10;
                        $total_data = count($tran_detail);
                        $left_row = $total_row-$total_data;
                    ?>
                    <?php for($i=0;$i<$left_row;$i++): ?>
                        <tr>
                            <td><?php echo e($key += 1); ?></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>

                        </tr>
                    <?php endfor; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/stock-inventory/transfer/transfer-stock-fabric/show.blade.php ENDPATH**/ ?>