<?php Fun::lang() ?>
<div class="production-request">
    <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.production_item')); ?> </h2>
                    <hr>
                </div>
            </div>
        </div>
        <hr>
        <hr>
        <?php
            $user = findUser($production->user_id);
            $tailor =  \App\Model\people\TailorModel::find($production->tailor_id);
        ?>
        <div class="summary-header">
            <table width="100%">
                <tr>
                    <td>
                        <table class="text-left">
                            <tr>
                                <td><?php echo e(__('administrator.invoice_number')); ?></td>
                                <td> : <?php echo e($production->invoice_number); ?> </td>
                            </tr>
                            <tr>
                                <td><?php echo e(__('administrator.user')); ?></td>
                                <td> : <?php echo e($user?$user->name:''); ?> </td>
                            </tr>
                            <tr>
                                <td><?php echo e(__('administrator.tailor')); ?></td>
                                <td> : <?php echo e($tailor?$tailor->name:''); ?> </td>
                            </tr>
                            <tr>
                                <td><?php echo e(__('administrator.date')); ?></td>
                                <td> : <?php echo e(date('d-m-Y',strtotime($production['date']))); ?> </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div class="wrapper-table">
            <h3><?php echo e(__('administrator.items')); ?></h3>
            <table class="table table-striped table-hover ">
                <thead>
                <tr>
                    <th>#</th>
                    <th><?php echo e(__('administrator.barcode')); ?></th>
                    <th><?php echo e(__('administrator.items')); ?></th>
                    <th><?php echo e(__('administrator.size')); ?></th>
                    <th><?php echo e(__('administrator.color')); ?></th>
                    <th><?php echo e(__('administrator.estimate_qty')); ?></th>
                </tr>
                </thead>
                <tbody>
                <?php
                    $total_riel = 0;
                    $total_usd = 0;
                ?>
                <?php $__currentLoopData = $dproduct; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        $product_unit = findProductUnitByCode($value->barcode,'product');
                        $product = getProductById($product_unit->product_id);
                        $size = findSize($value->size_code);
                        $color = findColor($value->color_code);
                        $unit = findUnit($product_unit->unit_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($size->size??''); ?></td>
                        <td><?php echo e($color->name??''); ?></td>
                        <td><?php echo e($value->qty); ?> <?php echo e($unit->unit??''); ?></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
                <tfoot>
                <tr>
                    <td colspan="5" class="text-right no-border"><?php echo e(__('administrator.total_item')); ?></td>
                    <td><?php echo e($production->total_item); ?></td>
                </tr>
                </tfoot>
            </table>
        </div>
    </div>
</div>
<?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/production-request/show.blade.php ENDPATH**/ ?>