<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
include_once SFTCY_WORDFORM_PLUGIN_DIR . 'admin/views/pages-header-template.php';
$nonce = SftcyWordformBase::sc_wordform_get_nonce();
?>
<div id="wordformUsersSubmissionReportWrapperTable" class="wrap">	
	<div class="wordform-page-header-with-action">
		<h3><i class="dashicons dashicons-editor-table dashicon-custom-color"></i>&nbsp;<?php esc_html_e( 'Users Form Submission Report', 'wordform-pro' ); ?></h3>
	</div>

	<div class="wordform-submission-data-summary-grid wordform-submission-report-summary-grid" id="wordformSubmissionReportSummaryGrid">
		<div class="wordform-submission-data-summary-card">
			<span class="wordform-submission-data-summary-label"><?php esc_html_e( 'Forms With Submission', 'wordform-pro' ); ?></span>
			<strong class="wordform-submission-data-summary-value" id="wordformSubmissionReportSummaryForms">0</strong>
		</div>
		<div class="wordform-submission-data-summary-card">
			<span class="wordform-submission-data-summary-label"><?php esc_html_e( 'Total Submissions', 'wordform-pro' ); ?></span>
			<strong class="wordform-submission-data-summary-value" id="wordformSubmissionReportSummaryTotal">0</strong>
		</div>
		<div class="wordform-submission-data-summary-card">
			<span class="wordform-submission-data-summary-label"><?php esc_html_e( 'Average Per Form', 'wordform-pro' ); ?></span>
			<strong class="wordform-submission-data-summary-value" id="wordformSubmissionReportSummaryAverage">0</strong>
		</div>
		<div class="wordform-submission-data-summary-card">
			<span class="wordform-submission-data-summary-label"><?php esc_html_e( 'Latest Submission', 'wordform-pro' ); ?></span>
			<strong class="wordform-submission-data-summary-value" id="wordformSubmissionReportSummaryLatest"><?php esc_html_e( 'No submissions yet', 'wordform-pro' ); ?></strong>
		</div>
	</div>

	<table id="wordformUsersSubmissionReportDataTable" class="display hover stripe wp-list-table widefat fixed striped table-view-list wordform-users-submission-report-table">
		<thead>
			<tr>
				<th><?php esc_html_e( 'Form Name', 'wordform-pro' ); ?></th>				
				<th><?php esc_html_e( 'Total Submission', 'wordform-pro' ); ?></th>
				<th><?php esc_html_e( 'Latest Submission Date', 'wordform-pro' ); ?></th>				
			</tr>
		</thead>
		<tbody>
		</tbody>
	</table>						
</div><!-- #wordformUsersSubmissionReportWrapperTable -->

