<?php

use yii\helpers\Html;
use yii\grid\GridView;

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

$this->title = Yii::t('common/ugiro', 'Kötegek');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ugiro-index">

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


    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
			[
					'attribute' => 'id_ugiro',
					'label' => 'Köteg azonosító'
    		],
			[
					'attribute' => 'user.username',
					'label' => 'Felhasnáló'
    		],
			[
					'attribute' => 'statusName',
					'label' => 'Státusz'
    		],
			[
					'attribute' => 'created_at',
					'label' => 'Létrehozva',
					'format' =>'datetime'
    		],

            ['class' => 'yii\grid\ActionColumn',
            'template' => '{view}'		
    ],
        ],
    ]); ?>

</div>
