{% if show_form == True %} {% include 'search_form.html' %} {% else %} {% include 'header.html' %} {% endif %}

Počet nalezených subjektů: {{ results|length }}

{% for row in results %} {% set insolvency_notes = [] %} {% for i in range (row.insolvence|length) %} {% if row.insolvence[i].vymaz_datum == 0 %} {% set insolvency_notes = insolvency_notes.append(row.insolvence[i].insolvency_event) %} {% endif %} {% endfor %} {% for i in range (row.konkurz|length) %} {% if row.konkurz[i].vymaz_datum == 0 %} {% set insolvency_notes = insolvency_notes.append(row.konkurz[i].konkurz_event) %} {% endif %} {% endfor %} {% set criminal_notes = [] %} {% for i in range (row.criminal_record|length) %} {% set criminal_notes = criminal_notes.append(row.criminal_record[i].penalties) %} {% endfor %} {% if insolvency_notes|length > 0 or criminal_notes|length > 0 %} {% set table_style = "table table-danger" %} {% elif loop.index % 2 == 0 %} {% set table_style = "table table-light" %} {% else %} {% set table_style = "table table-secondary" %} {% endif %} {% if row.ico|length != 8 %} {% set ico_buffer = [] %} {% for i in range (8 - row.ico|length) %} {% set ico_buffer = ico_buffer.append("0") %} {% endfor %} {% else %} {% set ico_buffer = "" %} {% endif %} {% set current_seat = [] %} {% for i in range (row.sidlo_text|length) %} {% if row.sidlo_text[i].vymaz_datum == 0 %} {% set current_seat = current_seat.append(row.sidlo_text[i]) %} {% endif %} {% endfor %}

{% if insolvency_notes|length > 0 %} {% for i in range (insolvency_notes|length) %} {% endfor %} {% endif %} {% if criminal_notes|length > 0 %} {% for i in range (criminal_notes|length) %} {% endfor %} {% endif %}
Název subjektu: {{ row.nazev }} IČO: {{ ico_buffer|join("") }}{{ row.ico }}
Spisová značka: {{row.oddil}} {{row.vlozka}} vedená u {{row.soud}} Den zápisu: {{row.zapis}}
Sídlo: {% if current_seat|length != 0 %}{{ current_seat[0].sidlo_text }}{% else %}znepřístupněno podle § 25 odst. 2 zákona č. 304/2013 Sb.{% endif %} Úplný výpis Aktuální výpis
{{ insolvency_notes[i] }}
Osoba byla odsouzena k následujícím trestům: {{ criminal_notes[i] }}
{% endfor %} {% include 'footer.html' %}