<div class="print_this_form">
    <div class="row">
        <div class="col-md-12 col-lg-12">
            <div class="col-md-6 col-lg-6">
                <?php
                    $br = myBranch();
                ?>
                <?php if($br->logo): ?>
                    <img src="<?php echo e(asset($br->logo??LogoImage())); ?> " style="height: 100px;margin: 5px">
                <?php else: ?>
                    <h4><?php echo e($br->name); ?></h4>
                <?php endif; ?>
            </div>
            <div class="col-md-6 col-lg-6">
                    <h2><?php echo e(__('administrator.adjustment')); ?></h2>
                    <table class="table table-striped table-hover ">
                        <tr>
                            <td><b class="pull-left"><?php echo e(__('administrator.invoice')); ?> :</b></td>
                            <td><span class="pull-left"><?php echo e($master->invoice_number); ?></span></td>
                        </tr>
                        <tr>
                            <td><b class="pull-left"><?php echo e(__('administrator.date')); ?> :</b></td>
                            <td><span class="pull-left"><?php echo e(date('d-m-Y',strtotime($master->date))); ?></span></td>
                        </tr>
                        <tr>
                            <td><b class="pull-left"><?php echo e(__('administrator.warehouse')); ?> :</b></td>
                            <td><span
                                    class="pull-left"><?php echo e(findWarehouse($master->warehouse_id)->warehouse_name??''); ?></span>
                            </td>
                        </tr>
                        <tr>
                            <td><b class="pull-left"><?php echo e(__('administrator.user')); ?> :</b></td>
                            <td><span class="pull-left"><?php echo e(findUser($master->user_id)->name??''); ?></span></td>
                        </tr>
                    </table>
            </div>
        </div>
        <hr>
        <div class="col-md-12 col-lg-12">
            <div class="summary-header">
                <div class="wrapper-table">
                    <table class="table table-striped table-hover ">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th><?php echo e(__('administrator.code')); ?></th>
                            <th><?php echo e(__('administrator.item_name')); ?></th>
                            <th><?php echo e(__('administrator.old_stock')); ?></th>
                            <th><?php echo e(__('administrator.qty')); ?></th>
                            <th><?php echo e(__('administrator.balance')); ?></th>
                        </tr>
                        </thead>

                        <tbody>
                        <?php $__currentLoopData = $master->detail; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php
                                $product = getProductById($item->product_id);
                                $color = findColor($item->color_code);
                                $size = findSize($item->size_code);
                            ?>
                            <tr>
                                <td> <?php echo e($key+1); ?></td>
                                <td><?php echo e($item->barcode); ?></td>
                                <td><?php echo e($product->product_name); ?>

                                    <?php if($item->color_code || $item->size_code): ?>
                                        (<?php echo e(($size->size??'').','.($color->name??'')); ?>)
                                    <?php endif; ?></td>
                                <td><?php echo e($item->old_stock); ?></td>
                                <td><?php echo e($item->operator.$item->qty); ?></td>
                                <td><?php echo e($item->balance_stock); ?></td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>

                        <tfoot class="label-right customize-tfoot">
                        <tr>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>

</div>



<?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/adjustment/show.blade.php ENDPATH**/ ?>