title = 'Заказ #' . $model->id; $this->params[ 'breadcrumbs' ][] = [ 'label' => \Yii::t('app', 'Заказы'), 'url' => [ 'index' ], ]; $this->params[ 'breadcrumbs' ][] = $this->title; if (empty($model->payment)) { $payment = ''; } elseif ($model->payment == 10) { $payment = Html::tag('h4', $model->orderPayment->lang->title, [ 'class' => 'text-navy' ]) . Html::beginTag( 'table', [ 'class' => 'table table-bordered' ] ) . Html::tag( 'tr', Html::tag('td', $model->getAttributeLabel('credit_sum')) . Html::tag( 'td', CreditHelper::checkSum( $model->credit_sum ) ) ) . Html::tag( 'tr', Html::tag('td', $model->getAttributeLabel('credit_month')) . Html::tag( 'td', CreditHelper::checkMonth( $model->credit_month ) ) ) . Html::tag( 'tr', Html::tag('td', 'Кредит') . Html::tag('td', $model->total - $model->credit_sum) ) . Html::tag( 'tr', Html::tag('td', 'Оплата в месяц') . Html::tag( 'td', CreditHelper::getCredit( $model->total - $model->credit_sum, $model->credit_month ) . ' грн/мес' ) ) . Html::endTag('table'); } else { $payment = $model->orderPayment->lang->title; } ?>

title) ?>

$model->id, ], [ 'class' => 'btn btn-primary' ] ) ?> $model->id, ], [ 'class' => 'btn bg-orange' ] ) ?>

Данные заказа

$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' => $payment, 'format' => 'html', ], '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' => $historyData->totalCount == 0 ? 'div' : 'ul', 'class' => $historyData->totalCount == 0 ? 'list-view' : 'list-view timeline', ], 'emptyText' => 'У этого заказа пока нет истории', 'emptyTextOptions' => [ 'class' => 'callout callout-info', ], ] ); ?>