<div class="pickupinstore-confirm-container">
  <?php if($block->isAlreadyConfirmed()): ?>
    <div class="block-title"><?= __('This order has already been confirmed') ?></div>
  <?php elseif ($block->isNotAlreadyReceived()): ?>
    <div class="block-title"><?= __(
            'Before you confirm that the customer has collected the package at your boutique, you have to confirm that the package has been received at your boutique!'
        ) ?></div>
  <?php else: ?>
    <div class="block-title"><?= __(
            'Click on the button below to confirm that the customer has collected the package at your boutique'
        ) ?></div>
    <div class="actions-toolbar">
        <div class="primary">
            <a href="#" class="action create primary" data-mage-init='{
              "pickupinstore_confirm":
                {
                  "baseUrl": "<?= $block->getBaseUrl() ?>",
                  "params": "<?= $block->getParams() ?>"
                 }
               }'  ><span><?= __('Confirm') ?></span></a>
        </div>
    </div>
  <?php endif; ?>
</div>
