<?php

/**
 * @var array $rules
 */

?>
<div id="installment_rules_content" class="panel woocommerce_options_panel hidden">
    <div class="options_group">
        <div class="koin-rules-list">
            <h2 class="koin-rules-list-title"><?php _e('Koin - Product Associated Rules', 'wc-koin-official'); ?></h2>
            <?php require_once 'rules-table.php'; ?>
            <div class="toolbar toolbar-buttons">
                <a href="admin.php?page=wc-koin-official-installments&action=create_rule&product_id=<?php echo esc_attr(get_the_ID()); ?>" class="button button-primary">
                    <?php _e('Create Rule', 'wc-koin-official'); ?>
                </a>
                <a href="admin.php?page=wc-koin-official-installments" class="button button-primary">
                    <?php _e('View All', 'wc-koin-official'); ?>
                </a>
            </div>
            <span class="howto"><?php _e('The listing displays only rules related to the current product. Click "View All" to see all applicable rules.', 'wc-koin-official'); ?></span>

        </div>
    </div>
</div>
