title = Yii::t('app', 'Заказы'); $this->params['breadcrumbs'][] = $this->title; $safe_bill_img0 = '/storage/checkbox0.gif'; $safe_bill_img1 = '/storage/checkbox1.gif'; \backend\assets\CartAsset::register($this); Pjax::begin(['id' => 'gridViewContent']); ?>

title) ?>

render('_search', ['model' => $searchModel]); ?> $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], ['content' => function ($model) { $url = \yii\helpers\Url::to(['view', 'id' => $model->id]); return Html::a(' ', '#', [ 'class' => 'cartModalViewButton', 'value' => $url, ]); }, ], 'id', 'account_id', ['label' =>'Информация', 'format' => 'raw', 'value' =>function( $model ) use ($safe_bill_img0, $safe_bill_img1) { $info = ' Код 1С:' . ' ' . $model->scode . '
'; $info .= ' Имя:' . ' ' .$model->name . '
'; $info .= ' Тел.:' . ' ' .$model->phone . '
'; $info .= ' Email:' . ' ' .$model->email . '
'; $info .= ' Доставка:' . ' ' .$model->delivery . '
'; $info .= ' Комментарий:' . ' ' .$model->message . '
'; $info .= ' Страховка:'; if ($model->safe_bill == '1') { $info .= " "; } else { $info .= " "; } return $info; }, ], 'sum', [ 'label' =>'Статус', 'attribute' => 'status', 'filter' => \yii\helpers\ArrayHelper::map( \common\models\DicStatuses::find()->where(['active' =>1])->all(), 'id','name' ), ], 'manager_name', [ 'label' =>'Дата', 'value' =>function ($data) { return date('Y-m-d', $data->dt); }, 'attribute' => 'dt', 'filter' => DatePicker::widget([ 'model' =>$searchModel, 'language' =>'ru', 'size' =>'xs', 'separator' =>'по', 'attribute' => 'dt', 'type' => DatePicker::TYPE_RANGE, 'attribute2' => 'date_to', ]), ], ], ]); ?> '

Прайс

', 'id' => 'modal', 'size' => 'modal-lg', ]); echo "
"; Modal::end(); Pjax::end(); ?>