<?php
    use common\models\Car;
    use yii\helpers\Html;
    use yii\widgets\ListView;
    
    /**
     * @var Car      $model
     * @var mixed    $key
     * @var integer  $index
     * @var ListView $widget
     */
?>
<div class="img">
    <?php
        echo Html::img($model->image);
    ?>
</div>
<div class="specifications">
    <p><strong><?php echo $model->getAttributeLabel('color'); ?>: </strong><?php echo Yii::t('app', $model->color); ?></p>
    <p><strong><?php echo $model->getAttributeLabel('mileage'); ?>: </strong><?php echo $model->mileage; echo Yii::t('app', 'tsd_km'); ?></p>
    <p><strong><?php echo $model->getAttributeLabel('build'); ?>: </strong><?php echo $model->build; ?></p>
    <p><strong><?php echo $model->getAttributeLabel('option'); ?>: </strong><?php echo Yii::t('app', $model->option); ?></p>
</div>
<div class="price"><?php echo number_format($model->price, 2); ?>$</div>
<div class="text-center">
    <a class="btn" data-toggle="modal" data-target="#buy"><?= Yii::t('app', 'buy_but')?></a></div>
