15 lines
656 B
Twig
15 lines
656 B
Twig
{#- One split-off period of the price table on the detail page. Context: period, currency. -#}
|
||
<tr class="border-t border-gray-200 font-medium">
|
||
<td class="pt-2 pb-1" 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="py-1">{{ line.label }}</td>
|
||
<td class="py-1 text-right whitespace-nowrap">{{ (line.amount / 100) | format_currency(currency) }}</td>
|
||
</tr>
|
||
{% endfor %}
|