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.

36 lines
956 B

  1. <?php
  2. use yii\widgets\DetailView;
  3. use backend\modules\shop\models\ars\Delivery;
  4. ?>
  5. <?=
  6. DetailView::widget([
  7. 'model' => $model,
  8. 'attributes' => [
  9. 'id',
  10. 'order_id',
  11. 'shipping_name',
  12. 'shipping_id',
  13. [
  14. 'attribute' => 'type',
  15. 'value' => function ($model) {
  16. return Delivery::dropDown('type', $model->type);
  17. }
  18. ],
  19. 'status',
  20. 'decription:ntext',
  21. [
  22. 'attribute' => 'created_at',
  23. 'value' => function ($model) {
  24. return date('Y-m-d H:i:s', $model->created_at);
  25. }
  26. ],
  27. [
  28. 'attribute' => 'updated_at',
  29. 'value' => function ($model) {
  30. return date('Y-m-d H:i:s', $model->updated_at);
  31. }
  32. ],
  33. ],
  34. ]);
  35. ?>