Blame view

frontend/views/company/_company_common_review.php 863 Bytes
14a09168   Alex Savenko   init commit
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
  <?php
      /**
       * @var Comment $model
       */
      use common\modules\comment\models\Comment;
      use kartik\rating\StarRating;
  
  ?>
  <?php
      if(!empty( $model->rating )) {
          echo StarRating::widget([
              'name'          => 'rating_company_review',
              'value'         => $model->rating->value,
              'pluginOptions' => [
                  'displayOnly' => true,
                  'size'        => 'xxs',
                  'min'         => 0,
                  'max'         => 10,
                  'stars'       => 10,
              ],
          ]);
      }
  ?>
  <div class="company-performer-comments-autor">
      Мнение от:
      <?php
          $model->getAuthor(' (Гость)');
      ?>
  </div>
  <div class="company-performer-comments-txt"><?= $model->text ?></div>
  <a href="#" class="company-comm-see-all"><span>Развернуть</span></a>