<?php
/**
 * Copyright 2014 Adobe
 * All Rights Reserved.
 */

/**
 * Downloadable product type
 *
 * @var $block \Magento\Downloadable\Block\Catalog\Product\View\Type
 */
?>
<?php $_product = $block->getProduct() ?>

<?php if ($_product->isAvailable()) : ?>
    <div class="stock available" title="<?= $block->escapeHtmlAttr(__('Availability')) ?>">
        <span><?= $block->escapeHtml(__('In stock')) ?></span>
    </div>
<?php else : ?>
    <div class="stock unavailable" title="<?= $block->escapeHtmlAttr(__('Availability')) ?>">
        <span><?= $block->escapeHtml(__('Out of stock')) ?></span>
    </div>
<?php endif; ?>
<?= $block->getChildHtml() ?>
