{% if profiles %}
{% for p in profiles %}
{% set sent_cards = [] %}
{% set received_cards = [] %}
{% if profile_cards and p.id in profile_cards %}
{% for pc in profile_cards[p.id] %}
{% if pc.status in ('sent', 'delivered') %}
{% if sent_cards.append(pc) %}{% endif %}
{% else %}
{% if received_cards.append(pc) %}{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{{ p.nickname }}{% if p.showcase_enabled %}展示中{% else %}未开启{% endif %}
{% if p.showcase_enabled and (sent_cards or received_cards) %}