

<?php $__env->startSection('content'); ?>
<div class="container">
    <h1>Payment History: <?php echo e($member->first_name); ?> <?php echo e($member->surname); ?></h1>

    <table class="table-auto w-full border">
    <thead>
        <tr>
            <th>ID</th>
            <th>Payment Type</th>
            <th>Package</th>
            <th>Membership Fee</th>
            <th>Admission Fee</th>
            <th>Total Amount</th>
            <th>Payment Date</th>
            <th>Expiry Date</th>
        </tr>
    </thead>
    <tbody>
        <?php $__empty_1 = true; $__currentLoopData = $member->payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
        <tr>
            <td><?php echo e($payment->id); ?></td>
            <td><?php echo e($payment->payment_type); ?></td>
            <td><?php echo e($payment->membership_type); ?> - <?php echo e($payment->package_type); ?></td>
            <td>LKR <?php echo e(number_format($payment->membership_fee ?? 0)); ?></td>
            <td>LKR <?php echo e(number_format($payment->admission_fee ?? 0)); ?></td>
            <td><strong>LKR <?php echo e(number_format($payment->amount ?? 0)); ?></strong></td>
            <td><?php echo e(\Carbon\Carbon::parse($payment->payment_date)->format('d M Y')); ?></td>
            <td><?php echo e(\Carbon\Carbon::parse($payment->expiry_date)->format('d M Y')); ?></td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
        <tr>
            <td colspan="8" class="text-center">No payments yet</td>
        </tr>
        <?php endif; ?>
    </tbody>
</table>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Iron Ground Fitness Docs\Digital Gym Management System\gymerpsystem\resources\views/payments/history.blade.php ENDPATH**/ ?>