You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
956 B

<?php
use yii\widgets\DetailView;
use backend\modules\shop\models\ars\Delivery;
?>
<?=
DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'order_id',
'shipping_name',
'shipping_id',
[
'attribute' => 'type',
'value' => function ($model) {
return Delivery::dropDown('type', $model->type);
}
],
'status',
'decription:ntext',
[
'attribute' => 'created_at',
'value' => function ($model) {
return date('Y-m-d H:i:s', $model->created_at);
}
],
[
'attribute' => 'updated_at',
'value' => function ($model) {
return date('Y-m-d H:i:s', $model->updated_at);
}
],
],
]);
?>