{% if logs %}
    {% for log in logs %}
        {% if type == 'quarantine' %}
            <div class="antivirus-quarantine__btn" role="button" tabindex="0">
                <div class="antivirus-quarantine__item">
                    <div class="antivirus-quarantine__item-preview">
                        <div class="antivirus-quarantine__item-info">
                            <p class="antivirus-quarantine__item-name">{{ log.file_path }}{{ log.file_name }}</p>
                            <p class="antivirus-quarantine__item-path"></p>
                        </div>
                        <div class="antivirus-quarantine__item-actions">
                            <button class="antivirus-quarantine__item-btn remove_from_quarantine" data-path="{{ log.name }}">
                                <img width="18px" height="18px" src="{{ images_path }}icon_restore.svg" class="svg-icon">
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        {% else %}
            <div class="antivirus-quarantine__btn" role="button" tabindex="0" data-id="{{ log.id }}">
                <div class="antivirus-quarantine__item wt_infected__item">
                    <div class="antivirus-quarantine__item-preview">
                        <div class="antivirus-quarantine__item-info">
                            <p class="antivirus-quarantine__item-name">{{ log.file_path }}{{ log.file_name }}</p>
                            <p class="antivirus-quarantine__item-path">{{ log.description }}</p>
                        </div>
                        <div class="antivirus-quarantine__item-actions">
                            {% if type != 'infected_ajax' %}
                            <button class="antivirus-quarantine__item-btn add_to_quarantine" data-path="{{ log.name }}">
                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide-icon lucide lucide-plus size-5"><!----><path d="M5 12h14"></path><!----><path d="M12 5v14"></path><!----><!----><!----></svg>
                                <span>{{ 'Move to quarantine'|trans }}</span>
                            </button>
{#                            {% else %}#}
{#                            <img width="18px" height="18px" src="{{ images_path }}icon_arrow.svg" class="svg-icon antivirus-quarantine__item-chevron">#}
                            {% endif %}

                            <img width="18px" height="18px" src="{{ images_path }}icon_arrow.svg" class="svg-icon antivirus-quarantine__item-chevron">
                        </div>
                    </div>

{#                    {% if type == 'infected_ajax' %}#}
                    <div class="antivirus-quarantine__item-full visually-hidden">
                        <div class="antivirus-quarantine__item-entry">
                            <table class="antivirus-quarantine__item-table">
                                <thead>
                                <tr>
                                    <th>{{ 'Row'|trans }}</th>
                                    <th>{{ 'Signature'|trans }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>{{ log.row }}</td>
                                    <td>{{ log.signature }}</td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="antivirus-quarantine__item-description">
                                <p class="antivirus-quarantine__item-title">{{ 'Description'|trans }}</p>
                                <p class="antivirus-quarantine__item-content">{{ log.description }}</p>
                            </div>
                        </div>
                    </div>
{#                    {% endif %}#}
                </div>
            </div>
        {% endif %}
    {% endfor %}

{% else %}
    <!-- No data block -->
    <div class="antivirus-quarantine__nodata">
        <div class="antivirus-quarantine__nodata-icon-container">
            <img width="24px" height="24px" src="{{ images_path }}icon_shield_blue.svg" class="svg-icon">
        </div>

        {% if type == 'quarantine' %}
            <p class="antivirus-quarantine__nodata-title">{{ 'No files in quarantine'|trans }}</p>
            <p class="antivirus-quarantine__nodata-description">&nbsp;</p>
        {% else %}
            <p class="antivirus-quarantine__nodata-title">{{ 'No infected files found'|trans }}</p>
            <p class="antivirus-quarantine__nodata-description">{{ 'They are most likely in quarantine'|trans }}</p>
        {% endif %}
    </div>
{% endif %}