{# app/modules/loyalty/templates/loyalty/shared/card-detail-view.html #} {# Shared loyalty card detail view partial. Set these variables before including: - card_detail_api_prefix (str): API base URL for card data - card_detail_back_url (str): URL for the back button - show_copy_buttons (bool, default false): Show clipboard-copy buttons next to customer name/email/phone/card_number - show_category_column (bool, default false): Add a "Category" column to the transaction history table - show_pagination (bool, default false): Render pagination after the transaction history table The factory exposes `txLabels` (object: transaction_type -> translated label) and `txNotes` (object: raw_note -> translated note) — defaults to {} so admin/merchant callers that don't provide translations get the raw values shown. #} {% from 'shared/macros/alerts.html' import loading_state, error_state %} {% from 'shared/macros/tables.html' import table_wrapper, table_header %} {% from 'shared/macros/pagination.html' import pagination %}
{{ _('loyalty.shared.card_detail.points_balance') }}
0
{{ _('loyalty.shared.card_detail.total_earned') }}
0
{{ _('loyalty.shared.card_detail.total_redeemed') }}
0
{{ _('loyalty.shared.card_detail.member_since') }}
-
{{ _('loyalty.shared.card_detail.name') }}
{% if show_copy_buttons %}-
-
{% endif %}{{ _('loyalty.shared.card_detail.email') }}
{% if show_copy_buttons %}-
-
{% endif %}{{ _('loyalty.shared.card_detail.phone') }}
{% if show_copy_buttons %}-
-
{% endif %}{{ _('loyalty.shared.card_detail.birthday') }}
-
{{ _('loyalty.shared.card_detail.card_number') }}
{% if show_copy_buttons %}-
-
{% endif %}{{ _('loyalty.shared.card_detail.status') }}
{{ _('loyalty.shared.card_detail.last_activity') }}
-
{{ _('loyalty.shared.card_detail.enrolled_at') }}
-
{{ _('loyalty.shared.card_detail.no_transactions') }}