<div class="pickupinstore-confirm-container">
    <?php if($block->isAlreadyConfirmed()): ?>
        <div class="block-title"><?= __('This return has already been processed') ?></div>
    <?php else: ?>
        <div class="block-title"><?= __(
                'Click on the button below to confirm that the package has been rejected by your boutique'
            ) ?></div>
        <div class="actions-toolbar">
            <div class="primary">
                <button <?php if($block->getRmaStatus()  ) {  echo 'disabled' ;}  ?> class="action create primary" data-mage-init='{
              "pickupinstore_rmarefused":
                {
                  "baseUrl": "<?= $block->getBaseUrl() ?>",
                  "params": "<?= $block->getParams() ?>"
                 }
               }'  ><span><?= __('Confirm') ?></span></button>
            </div>
        </div>
    <?php endif; ?>
</div>
