<?php $__env->startSection('content'); ?>
    <?php Fun::lang() ?>
    <?php
    $user = findUser($master->user_id);
    $export_to = findWarehouse($master->export_to);
    $date = date('d-m-Y', strtotime($master->date));
    ?>
    <div class="print_form" style="overflow-y: scroll">
        <div class=" col-sm-12 col-xs-12 form-group text-center">
            <h3><?php echo e(__('administrator.return_item')); ?></h3>
        </div>
        <div class=" col-sm-12 col-xs-12 form-group">
            <table class="inv-header">
                <tr>
                    <td><?php echo e(__('administrator.start_date')); ?></td>
                    <td width="2%">:</td>
                    <td><?php echo e($date); ?></td>
                </tr>
                <tr>
                    <td><?php echo e(__('administrator.invoice_number')); ?></td>
                    <td>:</td>
                    <td><?php echo e($master->invoice_number); ?></td>
                </tr>
                <tr>
                    <td><?php echo e(__('administrator.user')); ?></td>
                    <td>:</td>
                    <td><?php echo e($user->name??''); ?></td>
                </tr>
            </table>
        </div>
        <hr>
        <div class=" col-sm-12 col-xs-12 form-group text-left">
            <table class="table" width="100%">
                <thead>
                <tr>
                    <th>#</th>
                    <th><?php echo e(__('administrator.items')); ?></th>
                    <th><?php echo e(__('administrator.barcode')); ?></th>
                    <th><?php echo e(__('administrator.return_qty')); ?></th>
                </tr>
                </thead>
                <tbody>
                <?php $__currentLoopData = $detail; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        $total = $row->qty*$row->template_qty;
                        $product_unit = findProductUnitByCode($row->barcode);
                        if($product_unit){
                                 $product = getProductById($product_unit->product_id);
                                 $product = $product->product_name??'';
                                 $size = findSize($product_unit->size_code);
                                 $color = findColor($product_unit->color_code);
                                 $size = $size->size??'';
                                 $color = $color->name??'';
                        }else{
                            $product = '';
                            $size = '';
                            $color = '';
                        }
                    ?>
                    <tr>
                        <td><?php echo e($key+1); ?></td>
                        <td><?php echo e("$product ($size , $color)"); ?><?php echo Form::hidden('barcode[]', $row->barcode); ?></td>
                        <td><?php echo e($row->barcode); ?></td>
                        <td><?php echo e($row->qty); ?></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
                <tfoot>
                </tfoot>
            </table>
            <br>
        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.jform', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/production-request/view-production-done.blade.php ENDPATH**/ ?>