<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>Member Details</title>
    <style>
        body {
            font-family: DejaVu Sans, sans-serif;
            font-size: 12px;
            line-height: 1.4;
            position: relative;
        }

        .header {
            text-align: center;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .company-info {
            text-align: center;
            margin-bottom: 10px;
        }

        .profile-image,
        .signature-image {
            display: block;
            margin: 0 auto 10px auto;
            border-radius: 50%;
            object-fit: cover;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 15px;
        }

        table th,
        table td {
            border: 1px solid #000;
            padding: 4px;
            text-align: left;
        }

        .label {
            font-weight: bold;
            width: 30%;
        }

        .value {
            width: 70%;
        }

        .footer {
            position: fixed;
            bottom: 10px;
            left: 0;
            right: 0;
            text-align: center;
            font-style: italic;
            font-size: 11px;
        }
    </style>
</head>

<body>

    <div class="header">
        <img src="<?php echo e(public_path('assets/img/logo.png')); ?>" width="100" height="50">
    </div>
    <div class="company-info">
        <div>Sagama Road, Akkaraipattu</div>
        <div>Phone: 0123456789</div>
        <div>Date: <?php echo e(now()->format('Y-m-d H:i:s')); ?></div>
    </div>
    <hr>
    <h3 class="header">Collection Details</h3>

    <table>
        <thead>
            <tr>
                <th>#</th>
                <th>Date</th>
                <th>Collection By</th>
                <th>Member Name</th>
                <th>Division</th>
                <th>Village</th>
                <th>Small Group</th>
                <th>Member NIC</th>
                <th>Old Account Number</th>
                <th>Amount</th>
                <th>Description</th>
            </tr>
        </thead>
        <tbody>
            <?php $count = 1; ?>

            <?php if(count($getCollectionData) > 0): ?>
                <?php $__currentLoopData = $getCollectionData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><?php echo e($count++); ?></td>
                        <td><?php echo e(\Carbon\Carbon::parse($data->created_at)->format('Y-m-d')); ?></td>
                        <td><?php echo e($data->collectionBy); ?></td>
                        <td><?php echo e($data->memberFirstName); ?> <?php echo e($data->memberLastName); ?></td>
                        <td><?php echo e($data->divisionName ?? '-'); ?></td>
                        <td><?php echo e($data->villageName ?? '-'); ?></td>
                        <td><?php echo e($data->smallGroupName ?? '-'); ?></td>
                        <td><?php echo e($data->nicNumber ?? '-'); ?></td>
                        <td><?php echo e($data->oldAccountNumber ?? '-'); ?></td>
                        <td><?php echo e(number_format($data->amount, 2)); ?></td>
                        <td><?php echo e($data->description ?? '-'); ?></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php else: ?>
                <tr>
                    <td colspan="11" style="text-align: center; padding: 10px;">
                        No collection data available.
                    </td>
                </tr>
            <?php endif; ?>
        </tbody>
    </table>




    <div class="footer">
        This is an auto-generated document.
    </div>

</body>

</html>
<?php /**PATH /home/techhdyz/swd.technathi.cloud/resources/views/pages/pdfgenerate/collection_details_report.blade.php ENDPATH**/ ?>