<?php use yii\helpers\Html;use yii\grid\GridView;use myretail\models\SyncConfig;$this->title='Configuration';$this->params['breadcrumbs'][]=$this->title;$count=SyncConfig::find()->where(['type_con'=>'retail'])->count();?><div class="sync-config-index"><h1><?=Html::encode($this->title)?></h1><?php if($count==0){?><p><?=Html::a('Create Configuration',['create'],['class'=>'btn btn-success'])?></p><?php }?><?=GridView::widget([ 'dataProvider'=>$dataProvider,'columns'=>[ ['class'=>'yii\grid\SerialColumn'],'inventory_account_number','asset_account_name','income_account_name','tax_name','branch_code','branch_name','api_key','jurnal_referral',['class'=>'yii\grid\ActionColumn'],],]);?></div>