{% load issue_filters %}
{% if employee_personal_data.passports %}======Паспорта:
{% for passport in employee_personal_data.passports %}
- {{ passport.issue_country }}, {% if passport.doc_type == 'foreign' %}заграничный{% else %}государственный{% endif %} {% if passport.doc_type == 'foreign' %} {{ passport.country_code }} {% endif %}: {{ passport.number }}, {% if passport.expire_date %} действителен до {{ passport.expire_date }}{% endif %}, выдан {{ passport.issue_date }} {{ passport.issued_by }} на имя {{ passport.first_name }} {{ passport.middle_name }} {{ passport.last_name }}.
{% endfor %}
{% endif %}

{% if employee_personal_data.visas %}======Визы
{% for visa in employee_personal_data.visas %}
- {{ visa.country }}, {% if visa.is_multiple %}многократная{% else %}однократная{% endif %}: {{ visa.number }}. Действует с {{ visa.issue_date }} {% if visa.expire_date %} по {{ visa.expire_date }}{% endif %}.
{% endfor %}
{% endif %}

{% if employee_personal_data.discountcards %}======Карты
{% for card in employee_personal_data.discountcards %}
- {{ card.description }}: {{ card.number }}
{% endfor %}
{% endif %}
