view.php 993 Bytes
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\grid\SerialColumn;
use yii\bootstrap\Modal;


/* @var $this yii\web\View */
/* @var $searchModel backend\models\CatalogSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Прайс ' . Html::encode( "{$importer} от {$date}" );
$this->params['breadcrumbs'][] = $this->title;

?>
<div class="catalog-index">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= GridView::widget( ['dataProvider' => $dataProvider,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],
            'FULL_ARTICLE',
            'ARTICLE',
            'BRAND',
            'DESCR',
            'BOX',
            'ADD_BOX',
            'GROUP',
            'name',
            ['attribute' => 'PRICE',
                'value' => function($data) {
                    return \Yii::$app->formatter->asDecimal($data->PRICE);
                }
            ],

        ],
        ] );


 ?>



</div>
<?php

?>