{% extends '@Fournisseur/DocFournisseur/_rowDocBase.twig' %}
{#___________________________________________________________________________#}
{% block colStatus %}
    <td class="etat">
        {% if docAtt.NOM_FIC == "" %}
            <span class="alg alg_sans_objet white-tooltip">
                <span class="infos_tooltip top-left">
                    {{ 'Absent' | trad }}
                </span>
            </span>
        {% elseif docAtt.NOM_FIC != "" and date<=docAtt.DT_VALID and date>=docAtt.relance %}
            <span class="alg alg_peremption white-tooltip">
                <span class="infos_tooltip top-left">
                    {{ 'Proche péremption' | trad }}
                </span>
            </span>
        {% elseif docAtt.DOC_INUTILE |boolSql %}
            <span class="alg alg_sans_objet white-tooltip">
                <span class="infos_tooltip top-left">
                    {{ 'Sans objet' | trad }}
                </span>
            </span>
        {% elseif docAtt.NOM_FIC != "" and (date < docAtt.DT_VALID or (docAtt.DT_VALID==0 and docAtt.DT_PARUT<=date)) %}
            <span class="alg alg_a_jour white-tooltip">
                <span class="infos_tooltip top-left">
                    {{ 'À jour' | trad }}
                </span>
            </span>
        {% elseif docAtt.NOM_FIC != "" and date > docAtt.DT_VALID  %}
            <span class="alg alg_perime white-tooltip">
                <span class="infos_tooltip top-left">
                    {{ 'Périmé' | trad }}
                </span>
            </span>
        {% endif %}
    </td>
{% endblock %}