<?php
/** @var \FiloBlu\Storelocator\Block\PickUpInStore\ConfirmReceived $block */
?>
<div class="pickupinstore-confirm-container">
    <?php if($block->isAlreadyConfirmed()): ?>
        <div class="block-title"><?= __('This order has already been confirmed') ?></div>
    <?php else: ?>
        <div class="block-title"><?= __(
                'Click on the button below to confirm that the package has been received at your boutique'
            ) ?></div>
        <div class="actions-toolbar">
            <div class="primary">
                <button <?php if($block->getOrderStatus()  ) {  echo 'disabled' ;}  ?> class="action create primary" data-mage-init='{
              "pickupinstore_confirm_received":
                {
                  "baseUrl": "<?= $block->getBaseUrl() ?>",
                  "params": "<?php echo $block->getParams() ?>"
                 }
               }'  ><span><?= __('Confirm') ?></span></button>
            </div>
        </div>
    <?php endif; ?>
</div>
