<?php

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

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

$this->title = Yii::t('common', 'Wechat Users');
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('content-header') ?>
<?= $this->title . ' ' . Html::a(Yii::t('common', 'Create Wechat User'), ['create'], ['class' => 'btn btn-success']) ?>
<?php $this->endBlock() ?>
    <?php  echo $this->render('_search', ['model' => $searchModel]); ?>

    <div class="box box-success">
        <div class="box-body">
            <?= GridView::widget([
                'dataProvider' => $dataProvider,
               //'filterModel' => $searchModel,
        'columns' => [
                    'id',
                    'openid',
                    'unionid',
                    'tel',
                    'nickName',
                    // 'avatarUrl:url',
                    // 'country',
                    // 'province',
                    // 'city',
                    // 'language',
                    // 'signature',
                    // 'created_at:datetime',
                    // 'updated_at:datetime',
                    // 'status',
                    // 'gender',

                    ['class' => 'common\helpers\DiyActionColumn'],
                ],
            ]); ?>
        </div>
    </div>
