<?php

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

/* @var $this yii\web\View */
/* @var $searchModel app\models\DocumentsToTheUserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app','DocumentsToTheUser ID');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="documents-to-the-user-index">
    <!--<h1><?/*=Yii::t('app','menuToTheUser ID');*/?></h1>-->
    <p>
        <?= Html::a('Створити меню Користувачу', ['menu-to-the-user/index'], ['class' => 'btn btn-info']) ?>
    </p>

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

    <p>
        <?= Html::a(Yii::t('app','Create Documents To The User'), ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,

        'columns' => [
           // ['class' => 'yii\grid\SerialColumn'],


            'menu.menu_name',
            'title',

            'path',


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