title = 'Автомобили'; $this->params[ 'breadcrumbs' ][] = $this->title; ?>

title) ?>

render('_search', ['model' => $searchModel]); ?>

'btn btn-success' ]) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ [ 'class' => 'yii\grid\ActionColumn' ], [ 'attribute' => 'car_id', 'headerOptions' => [ 'style' => 'word-break: break-all', ], ], 'model', 'year', [ 'attribute' => 'image', 'format' => [ 'image', [ 'style' => [ 'max-width' => '300px' ], ], ], ], 'color', [ 'attribute' => 'mileage', 'value' => function ($model) { /** * @var Car $model */ return $model->mileage . ' тыс. км.'; }, ], 'build', [ 'attribute' => 'option', 'format' => 'ntext', 'contentOptions' => [ 'style' => 'white-space: normal', ], ], [ 'attribute' => 'price', 'value' => function ($model) { /** * @var Car $model */ return '$' . number_format($model->price, 3); }, ], ], ] ); ?>