<?php

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

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

$this->title = Yii::t('backend/account-state', 'Account States');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="account-state-index">

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



    <?php /*echo  GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [

            'typeName',
            'money',
            'created_at:datetime',

            ['class' => 'yii\grid\ActionColumn',
             'template'		=> '{view}'
        ],
        ],
    ]); */?>
    
     <?php echo ListView::widget([
    		'dataProvider' => $dataProvider,
    		'itemView' => '_item_view'
    ])?>

</div>
