<?php

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

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

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

        <div class="publishing-index">

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

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

                    'id',
                    'name',
                    'userName',
                    'lotName',
                    'endBidding',
                    // 'date_stop',
                    // 'last_price',
                    // 'last_user',
                    // 'last_date',
                    // 'type',
                    'status',

                    ['class' => 'yii\grid\ActionColumn',
                        'template' => '{view}',],
                ],
            ]); ?>

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