
<?php $__env->startSection('content'); ?>
    <?php
    Fun::lang();
    $total_mat = 0;
    $total_due = 0;
    $symbol = $master->currency->symbol;
    ?>
    <label for="">
        <?php echo e(__('administrator.invoice_number')); ?> : <?php echo e($master->production->invoice_number); ?>

    </label>
    <label for="">
        <?php echo e(__('administrator.tailor')); ?> : <?php echo e($master->tailor->name); ?>

    </label>
    <label for="">
        <?php echo e(__('administrator.date')); ?> : <?php echo e(date('d-m-Y',strtotime($detail->payment_date))); ?>

    </label>
    <label for="">
        <?php echo e(__('administrator.amount')); ?> : ฿<?php echo e($detail->paid_amount); ?>

    </label>
    <?php if($detail->note): ?>
    <label for="">
        <?php echo e(__('administrator.note')); ?> : <?php echo e($detail->note); ?>

    </label>
    <?php endif; ?>
    <i>&nbsp;</i>

    <hr>
    <h3><u><?php echo e(__('administrator.material')); ?> <?php echo e(__('administrator.due')); ?></u></h3>
    <table class="table table-striped table-bordered">
        <thead>
        <tr>
            <th>#</th>
            <th><?php echo e(__('administrator.invoice_number')); ?></th>
            <th><?php echo e(__('administrator.date')); ?></th>
            <th><?php echo e(__('administrator.account_receivable')); ?></th>
            <th><?php echo e(__('administrator.action')); ?></th>
        </tr>
        </thead>
        <tbody class="material_body">
        <?php $__currentLoopData = $material_due; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
            $total_mat += $row->cash_advance;
            ?>
            <tr>
                <td><?php echo e($key+1); ?></td>
                <td><?php echo e($row->invoice_number); ?></td>
                <td><?php echo e(date('d-m-Y',strtotime($row->date))); ?></td>
                <td><?php echo e($symbol); ?><?php echo e($row->cash_advance); ?></td>
                <td><span class="button_info fa fa-eye button_show_transfer" data-href="<?php echo e(route('transfer-stock-material.show', $row->id)); ?>"></span></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <tfoot>
        <tr>
            <th colspan="3" class="text-right"><?php echo e(__('administrator.total')); ?></th>
            <th class="total_tailor_ar"><?php echo e($total_mat); ?></th>
        </tr>
        </tfoot>
    </table>
    <hr>
    <h3><u><?php echo e(__('administrator.tailor_due')); ?></u></h3>
    <table class="table table-striped table-bordered table_tailor_due">
        <thead>
        <tr>
            <th>#</th>
            <th><?php echo e(__('administrator.date')); ?></th>
            <th><?php echo e(__('administrator.amount')); ?></th>
            <th><?php echo e(__('administrator.note')); ?></th>
        </tr>
        </thead>
        <tbody>
        <?php $__currentLoopData = $tailor_due; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php

            $total_due += $row->paid_amount;
            ?>
            <tr>
                <td><?php echo e($key+1); ?></td>
                <td><?php echo e(date('d-m-Y',strtotime($row->payment_date))); ?></td>
                <td><?php echo e($symbol); ?><?php echo e($row->paid_amount); ?></td>
                <td><?php echo e($row->note); ?></td>
             </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <tfoot>
        <tr>
            <th colspan="2" class="text-right"><?php echo e(__('administrator.total')); ?></th>
            <th class="total_tailor_due"><?php echo e($total_due); ?></th>
            <th></th>
        </tr>
        </tfoot>
    </table>
<?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/payment/production/show-clear-ar-payment.blade.php ENDPATH**/ ?>