_vacancy_list_view.php
1.21 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
<?php
use frontend\helpers\TextHelper;
use yii\bootstrap\Html;
use yii\helpers\Url;
use yii\helpers\StringHelper;
?>
<div class="performer-vacant-reclam-bl">
<?= Html::a($model->name, Url::toRoute([
'company/vacancy-view',
'company_id' => $model->user_id,
'link' => $model->link,
]), [ 'class' => 'performer-vacant-reclam-bl-title' ]) ?>
<div class="performer-vacant-reclam-bl-title-two">
<?= $model->city ?>
<?= \Yii::$app->formatter->asDatetime($model->date_add, 'Y-MM-dd') ?>
<?php
if(!empty( $model->salary )) {
?>
<?= $model->salary ?>
<?= $model->salaryCurrency->label ?>
<?php
}
?>
</div>
<div class="performer-vacant-reclam-bl-content">
<span>
<?= TextHelper::truncateHtmlText($model->description, 200, '...') ?>
</span>
<?= Html::a('<img src="/images/performar_vacancy/arrow-post.png" alt=""/>', [
'company/vacancy-view',
'company_id' => $model->user_id,
'link' => $model->link,
], [ 'class' => 'performer-vacant-reclam-bl-content-read' ]) ?>
</div>
</div>