<?php
/** @var \Magento\Catalog\Block\Product\View $block */
$_product = $block->getProduct();
$themeSettingConfig = $this->helper('MGS\ThemeSettings\Helper\Config');
$isStickyCartEnable = $themeSettingConfig->getStoreConfig('themesettings/product_details/product_sub_information_enable');
?>
<?php if ($isStickyCartEnable):?>
<div class="product-sub-infomation">
    <div class="product-info-stock-sku">
        <div class="stock available" title="Availability">
            Availability:<?php echo $_product->isAvailable()?'<span>In stock</span>':'<span>Out of stock</span>';?>
        </div>
    </div>
    <div class="product attribute sku">
        <strong class="type">SKU</strong> <span class="value" itemprop="sku"><?=$_product->getSku()?></span>
    </div>
<!--    <div class="product-brand">-->
<!--        <div class="brand-name">-->
<!--            <strong class="type">Brand</strong>-->
<!--            <a title="Luxottica" href="https://claue.arrowtheme.com/en/shop-by-brand/luxottica">Luxottica</a>-->
<!--        </div>-->
<!--    </div>-->
</div>
<?php endif; ?>
