<div class="wrap">
    <h1 class="wp-heading-inline"><?php _e( 'FFL Dealers', 'ffl-dealers' ); ?></h1>

    <a href="<?php echo admin_url( 'admin.php?page=ffl-dealers&action=new' ); ?>" class="page-title-action"><?php _e( 'Add New', 'ffl-dealers' ); ?></a>

    <?php if ( isset( $_GET['inserted'] ) ) { ?>
        <div class="notice notice-success">
            <p><?php _e( 'Address has been added successfully!', 'wedevs-academy' ); ?></p>
        </div>
    <?php } ?>

    <?php if ( isset( $_GET['address-deleted'] ) && $_GET['address-deleted'] == 'true' ) { ?>
        <div class="notice notice-success">
            <p><?php _e( 'Address has been deleted successfully!', 'wedevs-academy' ); ?></p>
        </div>
    <?php } ?>

    <form action="" method="post">
		<input type="hidden" name="page" value="ffl_dealer_list_table">
       <?php wp_nonce_field('ffl_dealer_list_table_fields_nonce', 'ffl_dealer_list_table_fields'); ?>
        
        <?php
        $table = new Dealer_list();
        $table->prepare_items();
        $table->search_box( 'search', 'search_id' );
        $table->display();
        ?>
    </form>
</div>
