?> <hr /> <div id="div_contragent"> <?php echo \app\modules\shop\widgets\Contragent::widget(['viewFile' => 'contragent/backend_list', 'model' => $model->contragent]); ?> </div> <?php BackendWidget::end(); ?> <?php BackendWidget::begin(['icon' => 'user', 'title' => Yii::t('app', 'Order delivery information')]); ?> <?php echo \app\modules\shop\widgets\Delivery::widget(['viewFile' => 'delivery/backend_form', 'orderDeliveryInformation' => $model->orderDeliveryInformation, 'form' => $form, 'immutable' => $orderIsImmutable]); ?> <?php BackendWidget::end(); ?> </div> <div class="col-xs-6 order-chat"> <?php BackendWidget::begin(['icon' => 'comments', 'title' => Yii::t('app', 'Managers chat')]); ?> <?php echo \app\modules\shop\widgets\OrderChat::widget(['list' => $lastMessages, 'order' => $model]); ?> <?php BackendWidget::end(); ?>
echo $this->render('_items', ['model' => $order, 'items' => $order->items]); ?> <?php echo \app\modules\shop\widgets\OrderTransaction::widget(['model' => $order, 'immutable' => $orderIsImmutable]); ?> <?php $form = \yii\bootstrap\ActiveForm::begin(['id' => 'order-details-form', 'action' => \yii\helpers\Url::to(['/shop/cabinet/update-order', 'hash' => $order->hash]), 'layout' => 'horizontal']); echo \yii\helpers\Html::hiddenInput('orderId', $order->id); ?> <div class="panel panel-default"> <div class="panel-body"> <?php echo \app\modules\shop\widgets\Customer::widget(['viewFile' => 'customer/inherit_form', 'model' => $order->customer, 'form' => $form, 'immutable' => $orderIsImmutable]); ?> <?php echo \app\modules\shop\widgets\Contragent::widget(['viewFile' => 'contragent/inherit_form', 'model' => $order->contragent, 'form' => $form, 'immutable' => $orderIsImmutable]); ?> <?php echo \app\modules\shop\widgets\Delivery::widget(['viewFile' => 'delivery/inherit_form', 'deliveryInformation' => !empty($order->contragent) ? $order->contragent->deliveryInformation : null, 'orderDeliveryInformation' => $order->orderDeliveryInformation, 'form' => $form, 'immutable' => $orderIsImmutable]); ?> </div> <?php echo $orderIsImmutable ? '' : \yii\helpers\Html::tag('div', \yii\helpers\Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-primary']), ['class' => 'panel-footer']); ?> </div> <?php $form->end();