<?php $__env->startSection('content'); ?>
<div class="main-content-wrapper">
    <div class="main-box">
        <div class="main-content">
            <div class="container">
                <div class="page">
                    <div class="row">
                        <div class="report-capital layout-print">
                            <div class="header">
                                <div class="logo">
                                    <img src="<?php echo e(asset('assets/images/resize')); ?>/<?php echo e($branch->branch_img); ?>" alt="" width="150px">
                                </div>
                                <div class="title">
                                    <h2><?php echo e($branch->branch_kh); ?></h2>
                                    <h2><?php echo e($branch->branch_en); ?></h2>
                                    <h3>របាយការណ៍បង់ប្រាក់របស់អតិថិជនមិនទាន់សម្រេច</h3>
                                </div>
                                <div class="clear"></div>
                                <div class="border-bottom"></div>
                                <div class="table">
                                    <table>
                                        <thead>
                                            <tr>
                                                <th>No</th>
                                                <th>Date</th>
                                                <th>Description</th>
                                                <th>Cashier</th>
                                                <th>Receipt No</th>
                                                <th>Payment Method</th>
                                                <th>Reference</th>
                                                <th>Amount</th>
                                                <th>Penalty</th>
                                                <th>Option</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php $__currentLoopData = $paid_pending; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $pending): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <td><?php echo e($key+1); ?></td>
                                                <td><?php echo e(date('d-m-Y',strtotime($pending->created_at))); ?></td>
                                                <td><?php echo e($pending->loanpaid_remark); ?></td>
                                                <td><?php echo e($pending->cashier); ?></td>
                                                <td><?php echo e($pending->loanpaid_invoice); ?></td>
                                                <td><?php echo e($pending->acc_name); ?></td>
                                                <td><?php echo e($pending->loanpaid_reference); ?></td>
                                                <td>$ <?php echo e(number_format($pending->loanpaid_total,2)); ?></td>
                                                <td>$ <?php echo e(number_format($pending->loanpaid_penalty,4)); ?></td>
                                                <td>
                                                    <?php if($pending->loanpaid_penalty_option==1): ?>
                                                    Pay Now
                                                    <?php elseif($pending->loanpaid_penalty_option==2): ?>
                                                    Pass to Next Step
                                                    <?php elseif($pending->loanpaid_penalty_option==3): ?>
                                                    Wave
                                                    <?php endif; ?>
                                                </td>
                                            </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </tbody>
                                    </table>
                                    <div class="make-date">
                                        <p>ធ្វើនៅ​ <strong>ភ្នំពេញ</strong> ថ្ងៃទី <strong><?php echo e(\Globals::date_khmers(date('Y-m-d'))); ?></strong></p>
                                    </div>
                                    <div class="sign">
                                        <h3>ហត្ថលេខា</h3>
                                        <p>_________________</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.print', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>