{% extends 'backend/reservations/pdf/transformed/service.html.twig' %} {% block serviceName %}{{ 'Servicio de '~ type|trans|capitalize }}{% endblock %} {% block service_info %} {% for cruise in service %}

{{ cruise['cruise'] }}


{{ cruise['path'] }}
{#
#} {#{{ "start date" |trans |capitalize }}: {{ cruise['startDate'] |date("d-m-Y") }}#} {#
#} {#
#} {#{{ "end date" |trans |capitalize }}: {{ cruise['endDate'] |date("d-m-Y") }}#} {#
#}
{% if cruise['images']|length >0 %}
{% for key, image in cruise['images'] %} {% if key < 9 and image|generateUrl %} {% else %} {% set break = true %} {% endif %} {% endfor %}
{% endif %}

{{ "options" |trans |upper }}:
{% for option in cruise['options'] %} {% endfor %}
{{ "rooms" |trans |capitalize }} {{ "price" |trans |capitalize }}
{% for room in option['rooms'] %}
{{ "Tipo de camarote" |trans |capitalize }} : {{ room.cabinType.name }}
{% if room.cabinName %}
{{ "Nombre del camadote" |trans |capitalize }} : {{ room.cabinName.name}}
{% endif %} {% if room.titularName %}
{{ "titular name" |trans |capitalize }}: {{ room.titularName }}
{% endif %}
{{ "adult count" |trans |capitalize }}: {{ room.adultCount }}
{{ "kids" |trans |capitalize }}: {{ room.kids|length }} {% if room.kids|length>0 %} {{ " - " }}{{ "age(s)" |trans |capitalize }}: {% for key, kid in room.kids %} {% if room.kids|length == 1 %} {{ kid.age }} {{ "año" }} {% elseif (key|last and key !=0) or room.kids|length == 1 %} {{ kid.age }} {{ "años" }} {% else %} {{ kid.age }}{{", "}} {% endif %} {% endfor %} {% endif %}
{{ "nightsNumber" |trans |capitalize }}: {{ option['nights'] }}
Del {{ option['startDate']|date('d') }} de {{ option['startDate']|date('M') }} al {{ option['endDate']|date('d') }} de {{ option['endDate']|date('M') }} de {{ option['startDate']|date('Y') }}
{% endfor %} {% if option['observations'] %}
{{ "observations" |trans |capitalize }}: {{ option['observations']|raw }}
{% endif %}
{{ option['price']|price(option['currency']) }}


{% endfor %} {% endblock %}