<?php
/**
 * Main activities page template
 *
 * @link       https://personalizewp.com/
 * @since      3.3.0
 *
 * @package    PersonalizeWP
 * @subpackage PersonalizeWP/Admin
 */

namespace PersonalizeWP\Admin;

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

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

		<section class="section">
			<?php
			$activities = new ListTableActivity();
			$activities->prepare_items();
			?>
			<form id="activities-filter" method="get" action="#activities-filter">
				<div class="with-sidebar activities" 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
						$activities->search_box( __( 'Search Events', 'personalizewp' ), 'search-activities' );
						?>
					</div>
				</div>

				<?php
				$activities->display();
				?>
			</form>
		</section>
	</main>

<?php
// Include the delete modal
require_once plugin_dir_path( __DIR__ ) . 'contacts/_modal-delete-activity.php';
