{% for p in data %}
  • {{ p.surname }} {{ p.firstname }} {{ p.midname }}
    {{ format_phone(p.phone) }}
    Открыть Viber
    {{ p.email }}
    {% if p.social %}
    {{ p.social }}
    {% endif %}
  • {% endfor %}