{% if resultSet is iterable %}
{% set resultSet = resultSet|first %}
{% endif %}
<script data-cookieconsent="ignore">
_config.searchData = true;
</script>
<div class="ribbon mb-4 row row--gutter-width-1">
<div class="col col-auto d-flex flex-column">
<button type="button" onclick="history.back()" class="ribbon__item py-3 btn-no-styling px-3 flex-auto flex-row">
<span class="demi-icon demi-icon-chevron-left f17" aria-label="{{ 'demi.back'|trans }}" title="{{ 'demi.next|trans' }}"></span>
</button>
</div>
<div class="col">
<div class="ribbon__item py-3 font-medium h-100">
<div class="row row--gutter-width-10 align-items-baseline">
{% if resultSet is instanceof('\Elements\Demi\Accommodation\Search\ResultSet\Price') %}
{% set priceInfo = resultSet.getPriceInfo() %}
{% set price = resultSet.getPrice() %}
{% elseif resultSet is instanceof('\Elements\Demi\Accommodation\Search\ResultSet\HousePackageMaster') %}
{% set price = resultSet.getMinPriceBase() %}
{% set minPriceProductId = resultSet.getMinPriceBaseProductId() %}
{% set minPriceProduct = pimcore_object(minPriceProductId) %}
{% set minPriceProduct = minPriceProduct is not null and minPriceProduct is instanceof('\Elements\Demi\Model\AccommodationProduct') ? minPriceProduct : null %}
{% set priceInfo = resultSet.getPriceInfo() %}
{% endif %}
{% if price is defined and price > 0 and priceInfo is defined %}
<div class="col">{{ include('@ElementsDemiFrontend/Includes/priceInfoStr.html.twig',{'nights': priceInfo['nights'],'type': priceInfo['type']}) }}</div>
<strong class="col col-auto fz17 font-medium">
{{ 'demi.price-from-short'|trans }} {{ demi_paymentGetPriceObject(price, accommodation) }}
</strong>
{% endif %}
</div>
</div>
</div>
</div>