<?php

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

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

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

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


    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [

        	[
        		'attribute' => "log_id_log",
        		'label' => "Log azonosító",
        	],
        	[
        		'attribute' => "log_created_at",
        		'label' => "Dátum idő",
        	],
        	[
        		'attribute' => "log_message",
        		'label' => "Üzenet",
        	],
        	[
        		'attribute' => "log_app",
        		'label' => "Alkalmazás",
        	],
        	[
        		'attribute' => "user_username",
        		'label' => "Felhasználó",
        	],
            // 'id_user',
            // 'id_transfer',
            // 'id_money_movement',
            // 'id_ticket',
            // 'id_sale',
            // 'id_customer',
            // 'id_account',
            // 'id_account_state',
            // 'id_key',
            // 'id_product',
            // 'id_door_log',
            // 'updated_at',

//             ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>

</div>
