<h1><?php echo Html::encode($this->title); ?> </h1> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <!-- <p>--> <!-- --><?//= Html::a('Create Order', ['create'], ['class' => 'btn btn-success']) ?> <!-- </p>--> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'name', 'email:email', 'tel', ['attribute' => 'Товар', 'format' => 'html', 'value' => function ($dataProvider) { return $dataProvider->item->name; }], ['attribute' => 'фото товара', 'format' => 'html', 'value' => function ($dataProvider) { return Items::isgetImage($dataProvider->item_id) ? Html::img(Items::getNameByItemId($dataProvider->item_id), ['width' => 240, 'height' => 75]) : Html::img('/image/default.jpg', ['width' => 240, 'height' => 75]); }], ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div> </div> </div> </div> </div> <script> $('.glyphicon-pencil').hide(); </script>
echo Url::toRoute('/order/index'); ?> " class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a> </div> </div> <div class="box-content"> <div class="row"> <div class="order-view"> <h1><?php echo Html::encode($this->title); ?> </h1> <p> <!-- --><?//= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> <?php echo Html::a('Удалить', ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => 'Are you sure you want to delete this item?', 'method' => 'post']]); ?> </p> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['name', 'email:email', 'tel', 'message:ntext', ['attribute' => 'created_at', 'value' => date("d.m.Y H:i:s", $model->created_at)], ['attribute' => 'item_id', 'value' => $model->item->name], ['attribute' => 'Фото', 'value' => Items::getNameByItemId($model->item_id), 'format' => $model->item_id ? ['image', ['width' => '150', 'height' => '150']] : ['image', ['width' => '0', 'height' => '0']]]]]); ?> </div> </div> </div> </div> </div>