{% for userData in paymentData: %}

Membership number {{userData.membership_no or ''}}
Payment proof uploaded on {{userData.paid_at.strftime('%d-%m-%Y %H:%M')}}
Name {{userData.prefix or ''}}{{userData.full_name or ''}}
Email {{userData.email or ''}}
Mobile {{userData.mobile or ''}}
Amount Rs. {{userData.amount or ''}}
Payment method {{userData.payment_method or ''}}
Payment Status Success
UTR Number {{userData.utr_number or ''}}
{% if '.pdf' in userData.attach_file_name: %} {% else %} {% endif %}
{% endfor %}