{#Informations principales en haut de la page détail.Variables attendues : cruise (entité Cruise), content (CMS).#}{% set company = cruise.ship.company|default(null) %}{% set companyLogoUrl = company is not null? (crea_media_get_media(['logo'], company).cdnUrl|default('/img/placeholder-company.svg')): null %}{# Premier et dernier segment escale (hors journées en mer) pour les ports d'embarquement / débarquement. #}{% set departurePort = get_departure_port(cruise.itinerary).name|default('') %}{% set arrivalPort = get_arrival_port(cruise.itinerary).name|default(departurePort) %}{# Plage de dates de la croisière. #}{% set nb_days = cruise.itinerary.numberOfDays|default(1) %}{% set nb_nights = nb_days > 0 ? nb_days - 1 : 0 %}{# Meilleur prix. #}{% set best_price = getCruiseBestPrice(cruise) %}{% if best_price is not defined or best_price == 0 %}{% set best_price = null %}{% endif %}{% set partner = getCurrentPartner() %}{% set discountPercent = 0 %}{% if partner and company %}{% set discount = get_partner_company_discount(company) %}{% set discountPercent = discount ? discount.rate|default(0) : 0 %}{% endif %}{% set showPartnerDiscount = partner and discountPercent > 0 and partner.name|default('') is not empty %}{% set bestUpComingPrice = bestUpComingPrice|default(null) %}<div class="container-fluid mb-5"><div class="row"><div class="col-lg-1 col-md-1 col-sm-12"></div><div class="col-lg-10 col-md-10 col-sm-12 main-informations"><div class="main-informations-left"><div class="block"><h1 class="text-3xl-bd">{{ getLucidIcon('ship') }}{{ getCruiseName(cruise)|default('') }}</h1>{% if companyLogoUrl is not null %}<img class="logo" src="{{ companyLogoUrl }}" alt="{{ company.name|default('') }}"/>{% endif %}<div class="duration-1 text-md-rg"><div>{{ nb_days }}{{ 'details.main_information.days_and'|trans }}{{ nb_nights }}{{ 'details.main_information.nights_with'|trans }}<span><span class="text-md-sbd">{{ company.name|default('') }}</span><div class="stars-rating" data-mark="4.5">{% for i in 1..5 %}<span class="star"><span class="star-empty">{{ getLucidIcon('star') }}</span><span class="star-filled">{{ getLucidIcon('star') }}</span></span>{% endfor %}</div></span></div><div>{{ 'details.main_information.on_ship'|trans }}<span><span class="text-md-sbd">{{ cruise.ship.name|default('') }}</span><div class="stars-rating" data-mark="4.5">{% for i in 1..5 %}<span class="star"><span class="star-empty">{{ getLucidIcon('star') }}</span><span class="star-filled">{{ getLucidIcon('star') }}</span></span>{% endfor %}</div></span></div></div><div class="duration-2 text-md-rg"><div>{{ 'details.main_information.from'|trans }}<span class="text-md-sbd">{{ cruise.departureDate|date('d/m/Y') }}</span>{{ 'details.main_information.to'|trans }}<span class="text-md-sbd">{{ cruise.arrivalDate|date('d/m/Y') }}</span></div><div>{{ 'details.main_information.departure_from'|trans }}<span><span class="text-md-sbd">{{ departurePort }}</span><div class="stars-rating" data-mark="4.5">{% for i in 1..5 %}<span class="star"><span class="star-empty">{{ getLucidIcon('star') }}</span><span class="star-filled">{{ getLucidIcon('star') }}</span></span>{% endfor %}</div></span></div><div>{{ 'details.main_information.return_to'|trans }}<span><span class="text-md-sbd">{{ arrivalPort }}</span><div class="stars-rating" data-mark="4.5">{% for i in 1..5 %}<span class="star"><span class="star-empty">{{ getLucidIcon('star') }}</span><span class="star-filled">{{ getLucidIcon('star') }}</span></span>{% endfor %}</div></span></div></div></div>{% if offers is iterable and offers is not empty %}<div class="block"><h2 class="text-sm-bd">{{ getLucidIcon('star') }}{{ 'details.main_information.active_promotions'|trans }}</h2>{% include 'pages/_includes/components/_special_offers.html.twig' with { offers: offers } only %}</div>{% endif %}<div class="block"><h2 class="text-sm-bd">{{ getLucidIcon('hand-platter') }}{{ 'details.main_information.onboard_benefits'|trans }}</h2><div class="advantages">{% for advantage in company.advantages|default([]) %}<div class="advantage text-xs-rg"><span class="icon">{{ getLucidIcon(advantage.icon|default('percent')) }}</span><span class="text">{{ advantage.name|default(advantage.title|default('')) }}</span>{% include 'pages/_includes/partials/_benefit_popup.html.twig' with {'benefit': advantage} %}</div>{% endfor %}</div></div></div><div class="block block-price text-xs-rg">{% if content.isDevelopmentMode|default(false) and content.isFreeCard|default(false) %}<div class="free-card br2 shimmered"><div class="discount color-card-background"><div class="text text-lg-sebd">{{ 'details.main_information.instant_online_booking'|trans }}</div></div><div class=" text text-xs-md br1 color-card-background">{{ getLucidIcon('check') }}{{ 'details.main_information.instant_online_booking_description'|trans }}</div></div>{% endif %}{% if showPartnerDiscount %}<div class="partner-card br2 shimmered"><div class="icon">{{ getLucidIcon('star') }}</div><div class="tags"><div class="tag text-xs-bd color-price-tags-primary br1 ">{{ 'details.main_information.partner_tag'|trans }}</div><div class="tag text-xs-bd br1">{{ partner.name }}</div></div><div class="discount color-card-background"><div class="reduction-value text-4xl-sebd">-{{ discountPercent }}%</div><div class="text text-sm-bd">{{ 'details.main_information.exclusive_discount'|trans }}</div></div><div class=" text text-xs-md br1 color-card-background">{{ getLucidIcon('check') }}{{ 'details.main_information.partner_discount_applied'|trans }}</div></div>{% endif %}{# {% if best_price is not null and showPartnerDiscount %}<div class="old-price"><div class="price text-2xl-sebd color-grey">{{ (best_price / (1 - discountPercent / 100))|number_format(0, ',', ' ') }}€</div><div class="reduction-amount text-xs-md color-card-background br1">-{{ discountPercent }}%</div></div>{% endif %} #}<div><div>{{ cruise.bestPrice.cabinCategory.cabinSubType.name|default('') ?: 'details.cabin_choice.room'|trans }}<br>{{ 'common.from'|trans|lower }}</div><div>{% if best_price is not null %}<span class="price text-4xl-sebd color-price-tags-primary">{{ best_price|number_format(0, ',', ' ') }}€</span>{{ 'common.per_person_short'|trans }}{% else %}<span class="price text-4xl-sebd color-price-tags-primary">-</span>{% endif %}</div></div>{% if content.isFloa|default(false) %}<div class="floa text-sm-rg color-primary-dark">{{ 'ddd.pay_in_installments'|trans }}<img src="/img/logos/floa4x.svg" alt="FLOA"/></div>{% endif %}<a class="btn style1 medium" href="#choix-cabine">{{ 'ddd.choose_cabin_type'|trans }}</a></div></div><div class="col-lg-1 col-md-1 col-sm-12"></div></div></div>