title = 'Заказ #' . $model->id;
$this->params[ 'breadcrumbs' ][] = [
'label' => \Yii::t('app', 'Заказы'),
'url' => [ 'index' ],
];
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
= Html::encode($this->title) ?>
= Html::a(
'Обновить',
[
'update',
'id' => $model->id,
],
[ 'class' => 'btn btn-primary' ]
) ?>
= Html::a(
'История',
[
'log',
'id' => $model->id,
],
[ 'class' => 'btn bg-orange' ]
) ?>
= DetailView::widget(
[
'model' => $model,
'attributes' => [
'id',
'deadline',
'pay',
[
'label' => 'Причина',
'value' => empty($model->reason) ? '' : Order::REASONS[$model->reason],
],
[
'label' => 'Статус',
'value' => empty($model->label) ? '' : $model->orderLabel->lang->title,
],
'name',
'phone',
'email',
'comment',
[
'label' => 'Способ доставки',
'value' => empty($model->delivery) ? '' : $model->orderDelivery->lang->title,
],
'declaration',
'stock',
[
'label' => 'Способ оплаты',
'value' => empty($model->payment) ? '' : $model->orderPayment->lang->title,
],
'insurance',
'city',
'adress',
'body',
'check',
'sms',
],
]
) ?>
$products,
'columns' => [
[
'class' => SerialColumn::className(),
],
'product_name',
'name',
'sku',
'price',
'count',
'sum_cost',
],
]
);
?>
$historyData,
'layout' => '{items}',
'itemView' => '_timeline_item',
'itemOptions' => [
'tag' => false,
],
'options' => [
'tag' => 'ul',
'class' => 'list-view timeline',
],
]
);
?>