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

    <div id="poststuff">
        <div id="post-body">
            <div id="post-body-content">
                <div>
                    <form method="post">
                        <?php wp_nonce_field('items_list_page', '_nonce_items_list_page'); ?>
                        
                        <?php
                           $table->prepare_items();

                           $table->search_box( esc_html__( 'Find', 'kirilkirkov-pdf-invoice-manager' ), 'find-item');

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