_company_team_review.php 1.03 KB
<?php
    /**
     * @var Comment  $model
     * @var int      $key
     * @var int      $index
     * @var ListView $widget
     */
    use common\modules\comment\models\Comment;
    use yii\helpers\Html;
    use yii\widgets\ListView;

?>
<?php
    if(!empty( $model->rating )) {
        ?>
        <div class="rating">
            <!--оценка-->
            <input type="hidden" class="val" value="<?= $model->rating->value ?>"/>
            <!--количество голосов-->
            <input type="hidden" class="votes" value="1"/>
        </div>
        <?php
    }
?>
<?php
    if(!empty( $model->user_id )) {
        ?>
        <div class="company-performer-comments-autor">Отзыв от: <?= $model->author->name ?></div>
        <?php
    } else {
        ?>
        <div class="company-performer-comments-autor">Отзыв от: <?= $model->user_name ?></div>
        <?php
    }
?>
<div class="company-performer-comments-txt"><?= $model->text ?></div>
<a href="#" class="company-comm-see-all"><span>Развернуть</span></a>