<?php
/**
 * Main contacts page template
 *
 * @link       https://personalizewp.com/
 * @since      3.2.0 Merged into PWP
 * @since      1.0.0
 *
 * @package    PersonalizeWP
 * @subpackage PersonalizeWP/Admin
 */

namespace PersonalizeWP\Admin;

use PersonalizeWP\Admin\PageContacts;
use PersonalizeWP\Admin\ListTableContacts;

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

?>
	<main>
		<?php require_once plugin_dir_path( __DIR__ ) . '/_other/contacts-nav.php'; ?>

		<section class="section">
			<?php
			$contacts = new ListTableContacts();
			$contacts->prepare_items();
			?>
			<form id="profiles-filter" method="get">
				<div class="with-sidebar profiles" data-direction="rtl">
					<div class="section-description">
						<p><?php esc_html_e( 'From their first arrival on your website, to their latest activity - keep track of all your visitors’ actions and build their profile and lead score, allowing you to show them the content that they want and need to see.', 'personalizewp' ); ?></p>
					</div>
					<div class="sidebar table-actions">
						<?php
						$contacts->search_box( __( 'Search Profiles', 'personalizewp' ), 'search-contacts' );
						?>
					</div>
				</div>
				<?php
				$contacts->display();
				?>
			</form>
		</section>
	</main>

<?php
require_once __DIR__ . '/_modal-delete.php';
