<?php

use yii\helpers\Html;
use common\widgets\GridView;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\VehicleservicehistorybeSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Vehicle Serviceing History';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="vehicleservicehistorybe-index">

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
        <?= Html::a('Create Vehicle Service', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

           // 'id',
		   ['label' =>'Registration',
			'attribute' => 'reg'	,	   
			'value' => 'vehicle.reg',
			],
            'description',
			'type',
            'created_at',
            'updated_at',
            'createdby.fullname',
            'updatedby.fullname',
            // 'deleted_by',
            // 'deleted_at',
            // 'deleted',
            // 'actid',
            // 'status',
            // 'padno',
            // 'jobno',
            // 'relatedid',
            // 'warnings',
            // 'furtheractions',
            // 'mileage',
            // 'date',

            ['class' => 'common\widgets\ActionColumn'],
        ],
    ]); ?>
</div>
