{% if offCanva %} {% else %}

>> Lançar novo pagamento

R$
{% endif %}

>> Extrato

{% for row in pagamentos %}
{# Esquerda: título/valores (sempre ocupa o espaço) #}
{{ row.mesReferencia|getMesPorExtenso }}/{{ row.anoReferencia }} {% if row.status %} {% if row.status == 'Pago' %} {{ row.dtPagamento ? 'Pago em ' ~ row.dtPagamento|formatDate : '' }} {% elseif row.status == 'Vencido' %} {{ row.dataVencimento ? 'Vencido em ' ~ row.dataVencimento|formatDate : '' }} {% elseif row.status == 'Aguardando' %} {{ row.status ?: 'Indefinido' }} {% endif %} {% endif %}
{% set partes = [] %} {% if row.valorCalculado is not same as(null) %} {% set partes = partes|merge(['Aluguel: R$ ' ~ row.valorCalculado|number_format(2, ',', '.')]) %} {% endif %} {% if row.valorPago is not same as(null) %} {% set partes = partes|merge(['Recebido: R$ ' ~ row.valorPago|number_format(2, ',', '.')]) %} {% endif %} {% if partes %}
{{ partes|join(' • ') }}
{% endif %}
{# Direita (desktop): ações; (mobile): vai para baixo e centraliza #}
{% if row.status %} {% if row.status == 'Pago' %}
Recibo
{% if row.identificadorRecibo is defined and row.identificadorRecibo is not empty %} {% endif %}
{% else %} {% endif %} {% endif %}
{% endfor %}