{% load membership_tags %}

{{ member.display_name }}

{{ club.name }}

{% if member.club.show_member_barcode %}
Membership number
{{ member.membership_number }}
{% if member.barcode_image_link %}
Membership barcode
{% endif %} {% endif %} {% if member.club.membership_annual_fee and member.membership_expiration_date %}

Membership expires: {{ member.membership_expiration_date|date:"M j, Y" }}

{% endif %} {% if member.bap_points or member.hap_points or member.culture_points %}

{% if member.bap_points %}BAP: {{ member.bap_points }} pts{% endif %} {% if member.hap_points %}{% if member.bap_points %}  |  {% endif %}HAP: {{ member.hap_points }} pts{% endif %} {% if member.culture_points %}{% if member.bap_points or member.hap_points %}  |  {% endif %}Culture: {{ member.culture_points }} pts{% endif %}

{% endif %}

Member since: {{ member.createdon|date:"M j, Y" }}

{% google_wallet_save_url member as wallet_url %}
{% if wallet_url %} Add to Google Wallet {% endif %} {% if apple_wallet_enabled and member.club.show_member_barcode %} Add to Apple Wallet {% elif wallet_url %} {# Google Wallet is configured but Apple isn't — show a stub that explains why. #} {% endif %}
{% if not apple_wallet_enabled and wallet_url %}
Apple wants a hundred bucks to add passes, which is crazy given everything else is completely free. If you want to add membership cards to your iPhone, send the $100 to TFCB and we'll get verified with them and enable Apple Wallet integration for everyone. Or just take a screenshot.
{% endif %}