16 lines
673 B
Twig
16 lines
673 B
Twig
{#- One split-off period of the offer summary: its range as a heading, then its lines.
|
||
Context: period, currency. -#}
|
||
<tr class="border-t border-primary-bg font-semibold">
|
||
<td class="p-2" colspan="2">
|
||
{% if period.label ?? null %}{{ period.label }} · {% endif %}
|
||
{{ period.dateFrom|date('d.m.Y') }} – {{ period.dateTo|date('d.m.Y') }},
|
||
{{ period.nights }} {{ period.nights != 1 ? 'Nächte' : 'Nacht' }}
|
||
</td>
|
||
</tr>
|
||
{% for line in period.lines %}
|
||
<tr>
|
||
<td class="p-2">{{ line.label }}</td>
|
||
<td class="p-2 text-right whitespace-nowrap">{{ (line.amount / 100)|format_currency(currency) }}</td>
|
||
</tr>
|
||
{% endfor %}
|