Collapsable

'date_range', 'value' => $dateValue, 'pluginOptions' => [ 'locale' => [ 'format' => 'DD-MM-Y', 'separator' => ' : ', ], ], ] ) ?>
'label', 'value' => $dataLabel, 'data' => ArrayHelper::map( $labels, function($model) { return $model->id; }, function($model) { return $model->lang->title; } ), 'options' => [ 'placeholder' => 'Все', ], 'pluginOptions' => [ 'allowClear' => true, ], ] ) ?>
'btn btn-success', ] ) ?>

Метки, статистика за

$statistic) { echo Html::tag( 'tr', Html::tag('td', $name) . Html::tag('td', $statistic[ 'count' ]) . Html::tag( 'td', $statistic[ 'sum' ] ) . Html::tag('td', $statistic[ 'products' ]) . Html::tag('td', $statistic[ 'unique' ]) ); } ?>
Метка Заказов, шт. На сумму, грн. Заказано товаров, шт. Уникальных товаров, шт.
'bar', 'options' => [ 'height' => 200, 'width' => 600, ], 'data' => $labelChartData, 'clientOptions' => [ 'title' => [ 'display' => true, 'text' => 'Custom Chart Title', ], 'scales' => [ 'xAxes' => [ [ 'display' => false, ], ], ], ], ] ); ?>

Метки, статистика за

$statistic) { echo Html::tag( 'tr', Html::tag('td', $name) . Html::tag('td', $statistic[ 'count' ]) . Html::tag( 'td', $statistic[ 'sum' ] ) ); } ?>
Причина Заказов, шт. На сумму, грн.
$dataProvider, 'columns' => [ 'id', 'created_at:datetime', 'name', 'city', [ 'attribute' => 'orderLabel.label', 'label' => 'Метка', ], 'total', [ 'attribute' => 'reason', 'content' => function($model) { /** * @var Order $model */ if (empty($model->reason)) { return ''; } else { return Order::REASONS[ $model->reason ]; } }, ], [ 'attribute' => 'manager.username', 'label' => 'Менеджер', ], [ 'attribute' => 'body', 'content' => function($model) { /** * @var Order $model */ if (empty($model->body)) { return ''; } else { return Html::a( StringHelper::truncate($model->body, 10, '...'), '#', [ 'data-toggle' => 'tooltip', 'title' => $model->body, 'onclick' => 'event.preventDefault();', ] ); } }, ], [ 'content' => function($model) { /** * @var Order $model */ return Html::a( Html::tag('i', '', [ 'class' => 'glyphicon glyphicon-eye-open' ]), [ '/ecommerce/order/view', 'id' => $model->id, ], [ 'target' => '_blank', 'data-pjax' => '0', ] ); }, ], ], ] ) ?>