<?php $__env->startSection('title', 'Member QR Cards'); ?>
<?php $__env->startSection('kicker', 'Print-ready QR codes for attendance'); ?>

<?php $__env->startSection('content'); ?>
    <div class="d-flex justify-content-between align-items-center mb-3 no-print">
        <div class="text-muted">QR token haina member ID wazi; inatumia token ngumu kwa usalama zaidi.</div>
        <button onclick="window.print()" class="btn btn-primary"><i data-lucide="printer"></i><span>Print Cards</span></button>
    </div>

    <div class="row g-3">
        <?php $__empty_1 = true; $__currentLoopData = $members; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $member): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <div class="col-xl-6">
                <div class="qr-card">
                    <div class="qr-frame">
                        <canvas data-qr-token="<?php echo e($member->qr_token); ?>"></canvas>
                    </div>
                    <div class="d-flex flex-column justify-content-between">
                        <div>
                            <div class="text-muted small text-uppercase fw-bold">Anglican Church St Peter and Paul</div>
                            <h3 class="h4 fw-bold mb-1"><?php echo e($member->full_name); ?></h3>
                            <div class="mb-2"><?php echo e($member->member_code); ?> · <?php echo e($member->jumuiya?->name ?? 'No Jumuiya'); ?></div>
                            <div class="text-muted small">Mwenge Kijitonyama</div>
                        </div>
                        <div class="small text-muted">Present this card during QR attendance scanning.</div>
                    </div>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <div class="col-12"><div class="empty-state">Hakuna active members wa kuchapishiwa QR cards.</div></div>
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/anglican/resources/views/members/qr-cards.blade.php ENDPATH**/ ?>