{% extends 'TroikaRealEstateBundle:Default:layout.html.twig' %}
{% block ogTitle %}{{ complex.seoTitle }}{% endblock %}
{% block ogImg %}https://troikaestate.ru{{ complex.photos.0.webPathImage }}{% endblock %}
{% block ogDescription %}{{ complex.seoDescription }}{% endblock %}
{% block title %} {{ complex.seoTitle }} {% endblock %}
{% block description %} {{ complex.seoDescription }} {% endblock %}
{% block keywords %} {{ complex.seoKeywords }} {% endblock %}
{% block main %}
<script src="https://api-maps.yandex.ru/2.1/?apikey=b768297a-39c6-4852-9956-1d07c2261d8f&lang=ru_RU"
type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var lng = $('#complex_card_map').data('lat');
var lat = $('#complex_card_map').data('lng');
ymaps.ready(function (argument) {
var map = new ymaps.Map('complex_card_map', {
center: [parseFloat(lng), parseFloat(lat)],
zoom: 15, controls: [],
behaviors: ['default', 'scrollZoom']
},
{
maxZoom: 22,
minZoom: 9,
yandexMapDisablePoiInteractivity: true,
//suppressMapOpenBlock: true,
autoFitToViewport: 'always', //'none'|'ifNull'|'always'
//restrictMapArea: [[20.0, 20.0], [70.0, 70.0]],
checkZoomRange: true,
duration: 500,
timingFunction: 'ease-in-out', //CSS transition-timing-function. Полный список значений: http://www.w3.org/TR/css3-transitions/#transition-timing-function_tag
useMapMargin: true,
zoomMargin: 150,
delay: 500,
flying: true
// safe: true
});
var myPlacemark = new ymaps.Placemark(
[parseFloat(lng), parseFloat(lat)],
{
hintContent: '{% if complex is defined and complex.name is not null %}{{ complex.name }},<br>{% endif %}{{ complex.address.street }} {{ complex.address.home }}, ID: {{ complex.id }}'
},
{
preset: 'islands#icon',
iconColor: '#c800ff',
//openEmptyBalloon: true,
//balloonPanelMaxMapArea: 0
/* iconLayout: 'default#imageWithContent',
iconImageHref: '/img/mark.png',
iconContent: '1',
iconImageOffset: [-16, -16],
iconImageSize: [32, 32],
iconImageClipRect: [[0, 0], [33, 32]] */
});
map.geoObjects.add(myPlacemark);
});
});
</script>
<a class="kpoisku" href="/complex"><i class="fa fa-chevron-left" aria-hidden="true"></i> К списку комплексов</a>
<div class="content" data-address="{{ complex.address.street }} {{ complex.address.home }}"
data-xcord="{{ complex.lat }}"
data-ycord="{{ complex.lng }}">
<div class="wrapper wrapper__card huckkk" style="margin-top: 45px;">
<div class="layout-column-left">
<div class="btn btn__tiny btn__translucent btn__card hide__tablet hide__phone">
<ul class="hb hide__phone hide__tablet huck-150">
<li><a href="/">Элитная недвижимость</a></li>
<li><a href="/elit_kvartiry">Продажа городской недвижимости</a></li>
<li><a href="/complex">Элитные новостройки</a></li>
<li class="current">{{ complex.name }}</li>
</ul>
</div>
</div>
<div class="layout-column-left" style="width: 65%">
<div class="panel panel__white panel__tabs-bottom card-photo">
<div class="slider slider__navigation" data-slider-force-size>
<div id="photo_slider" class="slider slider__navigation" data-slider-force-size data-slider-force-step>
<div class="slider-items" data-slider-type="slider-items">
<ul data-no-animation="true" data-slider-type="slider-items-container">
{% for photo in complex.photos %}
<li>
<img src="/cache{{ photo.webPathImage|replace({"." : "_1130x720."}) }}" alt="">
</li>
{% endfor %}
</ul>
</div>
<div class="slider-controls">
<div class="slider-controls-left" data-slider-type="slider-prev"></div>
<div class="slider-controls-right" data-slider-type="slider-next"></div>
<div class="slider-controls-zoom" data-slider-type="slider-zoom">
<i class="fa fa-search-plus"></i> увеличить
</div>
<div class="slider-controls-close" data-slider-type="slider-close">
<i class="fa fa-remove"></i> закрыть
</div>
</div>
<div class="slider-navigation">
<div class="slider-navigation-left" data-slider-type="slider-prev"></div>
<div class="slider-navigation-right" data-slider-type="slider-next"></div>
<div class="slider-navigation-items" data-slider-type="slider-thumbs">
<ul data-slider-type="slider-thumbs-container">
{% for photo in complex.photos %}
<li><img src="/cache{{ photo.webPathImage|replace({"." : "_1130x720."}) }}" alt=""></li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="layout-column-right" style="width: 32%; float: right">
<div class="panel panel__white">
<h1 style="font-weight: bold;">{{ complex.name }}</h1>
<table class="table">
<tr>
<td class="table-key">Стоимость</td>
<td class="table-value table-value__right">
{% if complex.price == 0 %}
<div class="label label__new uppercase" style="
margin-right: 0px;
">цена по запросу
</div>{% endif %}
{% if complex.price != 0 %}
<div class="table-value-big">от
${{ currency.getDollars(complex.price, 1) | number_format(0, '.', ' ') }}</div>
<p>от {{ complex.price | number_format(0, '.', ' ') }}<i class="fa fa-rub"></i></p>
{% endif %}
</td>
</tr>
<tr class="table-spacer"></tr>
<tr>
<td class="table-key">Стоимость за м<sup>2</sup></td>
<td class="table-value table-value__right">
от {{ currency.getRubles(complex.priceForMeter, 1) | number_format(0, '.', ' ') }}<i
class="fa fa-rub"></i> /
${{ currency.getDollars(complex.priceForMeter,2) | number_format(0, '.', ' ') }}
</td>
</tr>
<tr class="table-spacer"></tr>
</table>
<div class="hr hr__dotted"></div>
<table class="table">
<tr class="table-spacer"></tr>
<tr>
<td class="table-key table-key__big" colspan="2">
<h2>{{ complex.address.street }} {{ complex.address.home }}</h2>
</td>
</tr>
<tr class="table-spacer"></tr>
{% if complex.area2 %}
<tr>
<td class="table-key">Район:</td>
<td class="table-value">{{ complex.area2.name }}</td>
</tr>
{% endif %}
<tr>
<td class="table-key">Тип недвижимости:</td>
<td class="table-value">{{ complex.typeComplex.name }}</td>
</tr>
<tr>
<td class="table-key">Готовность:</td>
<td class="table-value">{{ complex.stageComplex.name }}</td>
</tr>
<tr>
<td class="table-key">Срок сдачи:</td>
<td class="table-value">{{ complex.final }}</td>
</tr>
</table>
<div class="hr hr__dotted"></div>
<table class="table">
<tr>
<td class="table-key table-key__header" colspan="2">Предложения</td>
</tr>
<tr class="table-spacer"></tr>
{% for order in complex.complexOrders %}
<tr>
<td class="table-key">{{ order.name }}</td>
<td class="table-value">{{ order.spaceFrom }} м<sup>2</sup> - {{ order.spaceTo }} м<sup>2</sup></td>
</tr>
<tr>
<td class="table-key"></td>
<td class="table-value">{{ order.priceFrom | number_format(0, '.', ' ') | raw }} <i
class="fa fa-rub"></i> - {{ order.priceTo | number_format(0, '.', ' ') | raw }} <i
class="fa fa-rub"></i></td>
</tr>
<tr class="table-spacer"></tr>
{% endfor %}
</table>
</div>
<div class="complex_card_map hide__phone" id="complex_card_map" data-lat="{{ complex.lat }}"
data-lng="{{ complex.lng }}">
</div>
<div class="complex_card_anyway hide__phone" id="complex_card_anyway">
<p>
Подробную информацию по проекту вы можете получить у наших консультантов непосредственно в офисе или
запросить
информацию on-line. К вашим услугам уютный офис с гостевой парковкой в Чистом переулке 6c2 (м.
Кропоткинская).
Наш офис
работает с понедельника по пятницу с 10 до 18 часов. В выходные дни мы проводим встречи по предварительной
договоренности. Назначить встречу с консультантом по недвижимости можно по телефону +7 (495) 22-555-10 или с
помощью
on-line заявки
</p>
<button class="first">Подобрать квартиру on-line</button>
<button class="second">Назначить встречу с консультантом</button>
</div>
</div>
<div class="layout-column-left desctop-m60" style=" width: 65%;margin-top: -25px;">
<div class="panel panel__white panel__lighten old_text">
<h2 class="title">ОПИСАНИЕ</h2>
<p>{{ complex.content | raw }}</p>
</div>
<div class="complex_card_anyway show__phone hide__tablet hide__desctop" id="mcomplex_card_anyway">
<p>
Подробную информацию по проекту вы можете получить у наших консультантов непосредственно в офисе или
запросить
информацию on-line. К вашим услугам уютный офис с гостевой парковкой в Чистом переулке 6c2 (м.
Кропоткинская).
Наш офис
работает с понедельника по пятницу с 10 до 18 часов. В выходные дни мы проводим встречи по предварительной
договоренности. Назначить встречу с консультантом по недвижимости можно по телефону +7 (495) 22-555-10 или с
помощью
on-line заявки
</p>
<button class="first">Подобрать квартиру on-line</button>
<button class="second">Назначить встречу с консультантом</button>
</div>
</div>
<div class="clearfix"></div>
<div class="hr hr__light clearfix__after"></div>
{% if complex.complex %}
{% if complex.complex.lots|length > 0 %}
<div class="wrapper">
<h2 class="caption text-center sim_h">Квартиры в этом доме</h2>
<div class="slider slider__cards sim">
<div class="slider-items cards" data-slider-type="slider-items">
<ul data-slider-type="slider-items-container">
{% for lot in complex.complex.lots %}
<li>
<a href="/elit_kvartiry/{{ lot.id }}" class="cards-item">
<div class="cards-item-image">
<img
src="{% if lot.photos|length %}/cache{{ lot.photos.0.webPathImage|replace({"." : "_305x176."}) }}{% endif %}"
alt="">
</div>
<div class="cards-item-text">
<table class="table">
<tr>
<td class="table-key table-key__big" colspan="2">
{% if lot.complex %}{{ lot.complex }}
{% elseif lot.address.street is defined %}
{{ lot.address.street }} {{ lot.address.home }}
{% else %}
{{ lot.address }}
{% endif %}
</td>
</tr>
<tr class="table-spacer"></tr>
<tr>
<td class="table-key">Район:</td>
<td class="table-value">
<div class="for-hint card-item-title hint height20 width156">
<span>
{{ lot.district3 }}
</span>
</div>
</td>
</tr>
{% if lot.freePlan %}
<tr>
<td style="width: 60%" class="table-key">Свободная планировка</td>
<td class="table-value"></td>
</tr>
{% else %}
<tr>
<td class="table-key">Площадь:</td>
<td class="table-value">
<div class="for-hint card-item-title hint height20 width156">
<span>{{ lot.area }} м<sup>2</sup></span>
</div>
</td>
</tr>
<tr>
<td class="table-key">Комнатность:</td>
<td class="table-value">
<div class="for-hint card-item-title hint height20 width156">
<span>{{ lot.rooms }} {{ 'комната'|trans({},null, null, lot.rooms%10) }}</span>
</div>
</td>
</tr>
{% endif %}
<tr>
<td class="table-key">Готовность:</td>
<td class="table-value">{{ lot.stageHouse }}</td>
</tr>
</table>
<table class="table">
<tr>
<td class="table-key idd">ID:{{ lot.id }}</td>
<td class="table-value nobr">
{% if lot.price != 0 %}
<div
class="table-value-big m-m70">{{ currency.getRubles(lot.price - lot.price * lot.oldPrice * 0.01, lot.currency) | number_format(0, '.', ' ') }}
<i class="fa fa-rub"></i></div>
{% else %}
<div class="label label__new uppercase">цена по запросу</div>
{% endif %}
</td>
</tr>
</table>
</div>
</a>
</li>
{% endfor %}
{% set lot = complex.complex.lots[
complex.complex.lots|length - 1
] %}
<li class="invisible-huck">
<a href="/elit_kvartiry/{{ lot.id }}" class="cards-item">
<div class="cards-item-image">
<img
src="{% if lot.photos|length %}/cache{{ lot.photos.0.webPathImage|replace({"." : "_305x176."}) }}{% endif %}"
alt="">
</div>
<div class="cards-item-text">
<table class="table">
<tr>
<td class="table-key table-key__big" colspan="2">
{% if lot.complex %}{{ lot.complex }}
{% elseif lot.address.street is defined %}
{{ lot.address.street }} {{ lot.address.home }}
{% else %}
{{ lot.address }}
{% endif %}
</td>
</tr>
<tr class="table-spacer"></tr>
<tr>
<td class="table-key">Район:</td>
<td class="table-value">
<div class="for-hint card-item-title hint height20 width156">
<span>
{{ lot.district3 }}
</span>
</div>
</td>
</tr>
{% if lot.freePlan %}
<tr>
<td style="width: 60%" class="table-key">Свободная планировка</td>
<td class="table-value"></td>
</tr>
{% else %}
<tr>
<td class="table-key">Площадь:</td>
<td class="table-value">
<div class="for-hint card-item-title hint height20 width156">
<span>{{ lot.area }} м<sup>2</sup></span>
</div>
</td>
</tr>
<tr>
<td class="table-key">Комнатность:</td>
<td class="table-value">
<div class="for-hint card-item-title hint height20 width156">
<span>{{ lot.rooms }} {{ 'комната'|trans({},null, null, lot.rooms%10) }}</span>
</div>
</td>
</tr>
{% endif %}
<tr>
<td class="table-key">Готовность:</td>
<td class="table-value">{{ lot.stageHouse }}</td>
</tr>
</table>
<table class="table">
<tr>
<td class="table-key idd">ID:{{ lot.id }}</td>
<td class="table-value nobr">
{% if lot.price != 0 %}
<div
class="table-value-big m-m70">{{ currency.getRubles(lot.price, lot.currency) | number_format(0, '.', ' ') }}
<i class="fa fa-rub"></i></div>
{% else %}
<div class="label label__new uppercase">цена по запросу</div>
{% endif %}
</td>
</tr>
</table>
</div>
</a>
</li>
</ul>
</div>
<div class="slider-controls">
<div class="slider-controls-left" data-slider-type="slider-prev"></div>
<div class="slider-controls-right" data-slider-type="slider-next"></div>
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endblock %}
{% block goals %}
<script>
$(document).ready(function () {
{% if app.environment != 'dev' %}
setTimeout(function () {
yaCounter20865403.reachGoal('anltc_newbuildings_one_open');
}, 1000);
$('.first').click(function () {
yaCounter20865403.reachGoal('anltc_newbuildings_order');
});
$('.second').click(function () {
yaCounter20865403.reachGoal('anltc_newbuildings_one_order');
});
{% endif %}
});
</script>
{% endblock %}