<?php 

use yii\helpers\Html; 

?>


<?php foreach($model->data->dx as $key => $value){ ?>
    <p><?= Html::encode("$key: $value") ?></p>
<?php } ?>

<?= Html::A('View on DX Portal', 'https://portal.dxdelivery.com/consignments/' . ($model->data->dx->tracking_number ?? ''), ['target' => '_blank', 'class' => 'btn btn-success']) ?>
<?= Html::A('Create Consignment', ['dx/consignments/create', 'id' => $model->id], ['target' => '_blank', 'class' => 'btn btn-primary']) ?>
