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