title = Yii::t('common', 'User Cars');
$this->params['breadcrumbs'][] = $this->title;
?>
beginBlock('content-header') ?>
= $this->title . ' ' . Html::a(Yii::t('common', 'Create User Car'), ['create'], ['class' => 'btn btn-success']) ?>
endBlock() ?>
render('_search', ['model' => $searchModel]); ?>
= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
'id',
'user_id',
'owner',
'plate_no',
'model',
'vin',
'address',
'register_date',
[
'attribute' => 'driving_license',
'format' => ['image', ['style' => 'height: 40px; width: 40px;border-radius: 50%;border: none;']],
'contentOptions' => ['class' => 'media-content']
],
// 'car_series_id',
// 'issue_date',
// 'vehicle_type',
// 'use_character',
// 'engine_no',
// 'status',
// 'created_at',
// 'updated_at',
[
'class' => 'backend\widgets\grid\SwitcherColumn',
'attribute' => 'status'
],
['class' => 'yii\grid\ActionColumn'],
],
]); ?>