_objects.php
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<div class="row row-flex">
<?php foreach ($objects as $object){ ?>
<div class="col-xs-12 col-sm-6 index-solution__col">
<div class="index-solution__item">
<a href="<?= \yii\helpers\Url::toRoute(
[
'object/view',
'alias' => $object->lang->alias,
]
) ?>" class="index-solution__item_img">
<!--540x240-->
<?= $object->image->getImg([]) ?>
</a>
<div class="index-solution__item_text">
<a href="<?= \yii\helpers\Url::toRoute(
[
'object/view',
'alias' => $object->lang->alias,
]
) ?>"><?=$object->lang->object_name ?></a>
<table>
<?php if(!empty($object->invertor_power)){ ?>
<tr>
<td><?=$object->invertor_power ?> кВт</td>
<td><?= \Yii::t('app', 'Номінальна потужність мережевого інвертора') ?></td>
</tr>
<?php } ?>
<?php if(!empty($object->module_power)){ ?>
<tr>
<td><?=$object->module_power ?> кВт</td>
<td><?= \Yii::t('app', 'Встановлена потужність фотоелектричних модулів') ?></td>
</tr>
<?php } ?>
<?php if(!empty($object->price)){ ?>
<tr>
<td><?=$object->price ?> $</td>
<td><?= \Yii::t('app', 'Вартість системи "під ключ"') ?></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
<?php } ?>
</div>