<div class="row px-3 py-3">
    <div class="col-12">
        <div class="table-container table-responsive">
            <table class="table table-bordered min-w-1150 py-3">
                <!-- <hr class="mb-1"> -->
                <thead>
                    <?php if(isset($checkDueBillPaymentData) && $checkDueBillPaymentData > 0): ?>
                    <tr>
                        <th scope="col" class="text-center"> Total Amount </th>
                        <th scope="col" class="text-center"> Special Discount </th>
                        <th scope="col" class="text-center"> Net Amount </th>
                        <th scope="col" class="text-center"> Previous Paid </th>
                        <th scope="col" class="text-center"> Previous Due </th>
                        <th scope="col" class="text-center"> Today Paid </th>
                        <th scope="col" class="text-center"> Current Paid </th>
                        <th scope="col" class="text-center"> Current Due </th>
                        <th scope="col" class="text-center"> Date </th>
                    </tr>
                    <?php else: ?>
                    <tr>
                        <th scope="col" class="text-center"> Total Amount </th>
                        <th scope="col" class="text-center"> Special Discount </th>
                        <th scope="col" class="text-center"> Net Amount </th>
                        <th scope="col" class="text-center"> Total Paid </th>
                        <th scope="col" class="text-center"> Due Amount</th>
                        <th scope="col" class="text-center"> Change Amount </th>
                        <th scope="col" class="text-center"> Date </th>
                    </tr>
                    <?php endif; ?>
                </thead>
                <tbody>
                    <?php if(isset($checkDueBillPaymentData) && $checkDueBillPaymentData > 0): ?>
                        <?php $__currentLoopData = $duePaymentHistoryData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$singleDPH): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if(isset($singleDPH) && $singleDPH != null): ?>
                        <tr>
                            <td class="text-no-wrap text-center">
                                <?php if($key == 0): ?>
                                <?php echo e($singleDPH->billingData->billPaymentData->total_amount); ?>

                                <?php endif; ?>
                            </td>
                            <td class="text-no-wrap text-center">
                                <?php if($key == 0): ?>
                                <?php echo e($singleDPH->billingData->billPaymentData->special_discount); ?>

                                <?php endif; ?>
                            </td>
                            <td class="text-no-wrap text-center">
                                <?php if($key == 0): ?>
                                <?php echo e($singleDPH->billingData->billPaymentData->net_amount); ?>

                                <?php endif; ?>
                            </td>
                            <td class="text-no-wrap text-center"><?php echo e($singleDPH->total_paid_amount); ?></td>
                            <td class="text-no-wrap text-center"><?php echo e($singleDPH->total_due_amount); ?></td>
                            <td class="text-no-wrap text-center text-success"><?php echo e($singleDPH->paid_amount); ?></td>
                            <td class="text-no-wrap text-center text-primary"><?php echo e($singleDPH->current_paid_amount); ?></td>
                            <td class="text-no-wrap text-center text-danger"><?php echo e($singleDPH->current_due_amount); ?></td>
                            <td class="text-center">
                                <?php echo e(Carbon\Carbon::parse($singleDPH->payment_date)->format('d-m-Y')); ?>

                            </td>
                        </tr>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        <?php if(isset($paidPaymentHistoryData) && $paidPaymentHistoryData != null): ?>
                        <tr>
                            <td class="text-no-wrap text-center">
                                <?php echo e($paidPaymentHistoryData->total_amount); ?>

                            </td>
                            <td class="text-no-wrap text-center text-success"><?php echo e($paidPaymentHistoryData->special_discount); ?></td>
                            <td class="text-no-wrap text-center text-success"><?php echo e($paidPaymentHistoryData->net_amount); ?></td>
                            <td class="text-no-wrap text-center text-success"><?php echo e($paidPaymentHistoryData->paid_amount); ?></td>
                            <td class="text-center text-danger"><?php echo e($paidPaymentHistoryData->due_amount); ?></td>
                            <td class="text-center text-primary"><?php echo e($paidPaymentHistoryData->change_amount); ?></td>
                            <td class="text-center">
                                <?php echo e(Carbon\Carbon::parse($paidPaymentHistoryData->billing_date)->format('d-m-Y')); ?>

                            </td>
                        </tr>
                        <?php endif; ?>
                    <?php endif; ?>
                    
                </tbody>

            </table>
        </div>
    </div>
</div>

<style>
    @media  screen and (max-width: 1200px){
        .custom-payment-history-table table {
            width: 1150px !important;
            margin-right: 0;
        }
    }

    .custom-payment-history-table table {
        width: 1150px !important;
        margin-right: 0;
    }

</style><?php /**PATH E:\Project\Personal-Project\Office-Project\update\skin-care\resources\views/admin/billingInvoice/billingPaymentHistory.blade.php ENDPATH**/ ?>