title = "Kapu események";
$this->params['breadcrumbs'][] = $this->title;
?>
= Html::encode($this->title) ?>
render('_search', ['model' => $searchModel]); ?>
= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
[ 'attribute' => 'id_door_manager_log', "value" =>"id_door_manager_log", "label" => 'ID' ],
[ 'attribute' => 'created_at', "value" =>"created_at", "format" => "datetime", "label" => 'Létrehozva' ],
[ 'attribute' => 'verify_only', "value" =>function ($model) {
return $model->verify_only ? "I" : "N";
}, "label" => 'Teszt' ],
[ 'attribute' => 'original_direction', "value" =>"original_direction", "label" => 'Irány' ],
[ 'attribute' => 'device', "value" =>"device", "label" => 'Eszköz ' ],
[ 'attribute' => 'card_number', "value" =>"card_number", "label" => 'Kártya' ],
[ 'attribute' => 'customer_name', "value" =>"customer_name", "label" => 'Vendég' ],
[ 'attribute' => 'ticket_type_name', "value" =>"ticket_type_name", "label" => 'Bérlet' ],
[ 'attribute' => 'ticket_usage_count', "value" =>"ticket_usage_count", "label" => 'Használat' ],
[ 'attribute' => 'validation_kind', "value" =>"validation_kind", "label" => 'Típus' ],
[ 'attribute' => 'key_number', "value" =>"key_number", "label" => 'Kulcs' ],
[ 'attribute' => 'error', "value" =>"error", "label" => 'Hiba' ],
[ 'attribute' => 'error_code', "value" =>"error_code", "label" => 'Hiba kód' ],
// 'id_door_ma',
// 'name',
// [ 'attribute' => 'id_user', "value" =>"userName" ],
// [ 'attribute' => 'id_user', "value" =>"userName" ],
//
// ['class' => 'yii\grid\ActionColumn',
// 'template' => '{view}',
// 'urlCreator' => function( $action, $model, $key, $index ){
// if ( $action == 'view' ){
// return Url::to(['inventory-item/index' , 'id'=> $model->id_inventory]);
// }
// },
// 'buttons' =>[
// 'view' =>function ($url, $model, $key) {
// return Html::a('Részletek', $url,['class' => 'btn btn-xs btn-primary',
// ]) ;
// }
// ]
//
// ],
],
]); ?>