{% extends 'pages/modal/realty/_layout-modal-base.html.twig' %}
{% block content %}
{% set class = 'layout-modal' %}
{% set layout = layout|default(null) %}
{% set title = layout.name|default('') %}
{% set subtitle = 'Срок сдачи ' ~ get_ready_date(layout)|default('') %}
{% set id = layout.id|default('') %}
{% set annotation = layout.building.annotation %}
{{ parent() }}
{% endblock %}
{% block layout_modal_left %}
{% set squarePrice = get_layout_square_price(layout) %}
{% include '_parts/realty/_layout-price-block.html.twig' with {
class: 'layout-modal__price-block layout-price-block_layout',
priceFrom: true,
price: layout.price,
squarePrice: squarePrice,
modalLink: 'request:trade_in_layout_modal',
modalId: layout.id,
} %}
{% set features = get_layout_features(layout) %}
{% include '_parts/realty/_layout-info-list.html.twig' with {
class: 'layout-modal__features',
features: features
} %}
{% set apartments = layout.apartments.toArray() %}
{% if apartments|length %}
{% include '_parts/realty/_layout-apartments.html.twig' with {
class: 'layout-modal__apartments',
apartments: apartments
} %}
{% endif %}
{% set isTimiryasev2 = get_building_name_by_layout(layout) %}
{% include '_parts/realty/_common-price-info.html.twig' with {
class: 'layout-modal__price-info',
isTimiryasev2: isTimiryasev2,
annotation: annotation
} %}
{% endblock %}
{% block layout_modal_right %}
{% set imageObject = layout %}
{% if layout.floorGroopPlaces|length %}
{% set floorGroupPlace = layout.floorGroopPlaces.toArray[0] %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block layout_modal_form %}
{% set actionPath = 'request:layout_recall' %}
{{ parent() }}
{% endblock %}
{% block print_section %}
{% set printTemplate = '_parts/realty/print/_layout-realty-print.html.twig' %}
{{ parent() }}
{% endblock %}