<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div id="kirilkirkov-inv-periodic-inv-list-page" class="wrap">
    <h1 class="wp-heading-inline"><?php esc_html_e('Periodic Invoices List', 'kirilkirkov-pdf-invoice-manager' ) ?></h1>
    <a href="<?php echo esc_url(admin_url('admin.php?page=' . $Config::SUB_MENU_CREATE_INVOICE_PAGE_SLUG) . '&save_periodic_inv=1'); ?>" class="add-new-h2"><?php echo esc_html__('Add New', 'kirilkirkov-pdf-invoice-manager') ?></a>

    <p>
        <?php esc_html_e('It\'s mandatory to add cronjobs to ensure the generation of periodic invoices.', 'kirilkirkov-pdf-invoice-manager'); ?>
    </p>
    <ul>
        <li><b><?php esc_html_e('If you use CLI:', 'kirilkirkov-pdf-invoice-manager'); ?></b> <code>php -f /path/to/your/wordpress/wp-cron.php</code></li>
        <li><b><?php esc_html_e('If you use HTTP request:', 'kirilkirkov-pdf-invoice-manager'); ?></b> <code>wget -q -O - http://www.example.com/wp-cron.php</code></li>
    </ul>

    <div id="poststuff">
        <div id="post-body">
            <div id="post-body-content">
                <div>
                    <form method="post">
                        <?php wp_nonce_field('periodic_invoices_list_nonce', 'periodic_invoices_list_nonce'); ?>

                        <?php
                           $table->prepare_items(); 
                        ?>
                        <?php
                           $table->display();
                        ?>
                    </form>
                </div>
            </div>
        </div>
        <br class="clear">
    </div>
</div>