<?php

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

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

$this->title = 'Vehicle keys';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="vehiclekeysbe-index">

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

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

            //'id',
            //'created_by',
            //'updated_by',
            //'deleted_by',
            //'actid',
            // 'relatedid',
            'vehiclel.reg',
            'type',
            'employeel.fullname',
            // 'created_at',
            // 'updated_at',
            // 'deleted_at',
            // 'jobno',
            'location',
            'peg',
            // 'status',
            // 'padno',

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