<?php

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

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Requisites ID');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="panel panel-primary">
    <div class="panel-heading"><span class="glyphicon glyphicon-credit-card"></span><strong> <?= Html::encode($this->title) ?></strong></div>
    <div class="panel-body">

        <div class="requisites-index">

            <ul class="nav nav-tabs">
                <li role="presentation">
                    <?= Html::a(\Yii::t('user', 'Profile'), ['settings/profile'], ['class' => 'presentation active']) ?>
                </li><li role="presentation"  class="active">
                    <?= Html::a(\Yii::t('app', 'Requisites ID'), ['/requisites/index', 'id' => Yii::$app->user->identity->id]) ?>
                </li>
            </ul>


            <?= GridView::widget([
                'dataProvider' => $dataProvider,
                'columns' => [
                    ['class' => 'yii\grid\SerialColumn'],

                    //'id',
                    //'user_id',
                    'account',
                    'bank',
                    'city',
                    'mfo',
                    'zkpo',

                    ['class' => 'yii\grid\ActionColumn'],
                ],
            ]); ?>
            <p>
                <?= Html::a(Yii::t('app', 'Create ID'), ['create'], ['class' => 'btn btn-success']) ?>
            </p>

        </div>
    </div>
</div>
