<?php
/**
 * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
 */
?>
<?php
/** @var \Magento\Backend\Block\Template $block */
/** @var \Temando\Shipping\ViewModel\Shipment\Location $viewModel */
$viewModel = $block->getData('viewModel');
?>
<section class="admin__page-section order-addresses">
    <div class="admin__page-section-title">
        <span class="title"><?= $block->escapeHtml(__('Address Information')) ?></span>
    </div>
    <div class="admin__page-section-content">
        <div class="admin__page-section-item order-billing-address">
            <?php /* Customer Address */ ?>
            <div class="admin__page-section-item-title">
                <span class="title"><?= $block->escapeHtml(__('Return From Address')) ?></span>
            </div>
            <address class="admin__page-section-item-content">
                <?= /* @noEscape */ $viewModel->getReturnFromAddressHtml(); ?>
            </address>
        </div>

        <div class="admin__page-section-item order-shipping-address">
            <?php /* Return Location Address */ ?>
            <div class="admin__page-section-item-title">
                <span class="title"><?= $block->escapeHtml(__('Return To Location')) ?></span>
            </div>
            <address class="admin__page-section-item-content">
                <?= /* @noEscape */ $viewModel->getReturnToAddressHtml(); ?>
            </address>
        </div>
    </div>
</section>
