One additional question, however.
How can I add a comma as a separator for document titles in TWIG, but only if the item is not the last one in the array?
I need to rewrite my code properly with this in mind.
{% if looper.item == 3000 %}
Паспорт родителя{% if not loop.last %},{% endif %}
{% elseif looper.item == 500 %}
Свидетельство о рождении{% if not loop.last %},{% endif %}
{% elseif looper.item == 50 %}
Фото{% if not loop.last %},{% endif %}
{% elseif looper.item == 100 %}
Паспорт{% if not loop.last %},{% endif %}
{% elseif looper.item == 105 %}
Паспорт с пропиской{% if not loop.last %},{% endif %}
{% elseif looper.item == 200 %}
СНИЛС{% if not loop.last %},{% endif %}
{% elseif looper.item == 250 %}
ИНН{% if not loop.last %},{% endif %}
{% elseif looper.item == 480 %}
Удостоверение многодетной семьи{% if not loop.last %},{% endif %}
{% elseif looper.item == 1000 %}
Сертификат RUSADA{% if not loop.last %},{% endif %}
{% elseif looper.item == 1100 %}
Банковские реквизиты{% if not loop.last %},{% endif %}
{% elseif looper.item == 1975 %}
Справка об отсутствии судимостей{% if not loop.last %},{% endif %}
{% elseif looper.item == 30100 %}
Медицинский допуск{% if not loop.last %},{% endif %}
{% elseif looper.item == 30300 %}
Спортивная страховка{% if not loop.last %},{% endif %}
{% else %}
Другое
{% endif %}