<?php
/** @var \FiloBlu\Rma\Block\Returns\View $block */

$orderAddressData = [];
$orderAddress = $block->getPickupAddress();

if($orderAddress) {
    $orderAddressData = $orderAddress->getData();
}

if(isset($orderAddressData['firstname'])){
?>
<div class="block block-easyreturn-details">
    <div class="block-content">
        <div class="box box-easyreturns-pickupaddress">
            <strong class="box-title"><span><?= /* @escapeNotVerified */ __('Pickup Address') ?></span></strong>
            <div class="box-content">
                <?= /* @escapeNotVerified */ __('Name') ?>: <?= $orderAddressData['firstname'] ?><br>
                <?= /* @escapeNotVerified */ __('Surname') ?>: <?= $orderAddressData['lastname'] ?><br>
                <?= /* @escapeNotVerified */ __('Address') ?>:<?= $orderAddressData['street'] ?><br>
                <?= /* @escapeNotVerified */ __('City') ?>: <?= $orderAddressData['city'] ?><br>
                <?= /* @escapeNotVerified */ __('State/Province') ?>: <?php if(isset($orderAddressData['region'])){echo $orderAddressData['region'];} ?><br>
                <?= /* @escapeNotVerified */ __('Zip/Postal Code') ?>: <?= $orderAddressData['postcode'] ?><br>
                <?= /* @escapeNotVerified */ __('Country') ?>: <?= $orderAddressData['country_id'] ?><br>
            </div>
        </div>
    </div>
</div>
<?php
}
?>