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

<?php /* @var $block \Magento\Catalog\Block\Adminhtml\Product\Composite\Fieldset\Options */ ?>
<?php $options = $block->decorateArray($block->getOptions()); ?>
<?php if (count($options)) :?>

    <?= $block->getChildHtml('options_js') ?>

    <fieldset id="product_composite_configure_fields_options"
              class="fieldset admin__fieldset <?= $block->getIsLastFieldset() ? 'last-fieldset' : '' ?>">
        <legend class="legend admin__legend">
            <span><?= $block->escapeHtml(__('Custom Options')) ?></span>
        </legend><br>
        <?php foreach ($options as $option) :?>
            <?= $block->getOptionHtml($option) ?>
        <?php endforeach;?>
    </fieldset>

<?php endif; ?>
