<?php
if (!defined('WPINC')) {
    die('Closed');
}
foreach ($submissions as $index => $submission) {
    $submission_id= $submission->submission_id; 
    ?>
    <div class="rm-submission-card">
        <div class="rm-submission-card-title dbfl">
            <a href="<?php echo add_query_arg('submission_id', $submission_id, get_permalink(get_option('rm_option_front_sub_page_id'))); ?>" class="difl"><?php echo $submission->form_name; ?> </a>
            <span class="difr"><a target="_blank" href="<?php echo admin_url('admin-ajax.php?rm_submission_id='.$submission_id.'&action=rm_print_pdf&rm_sec_nonce='.wp_create_nonce('rm_ajax_secure')); ?>"><i class="material-icons">&#xE2C0;</i></a></span>
        </div>
        <div class="rm-submission-card-content dbfl">
            <div class="rm-submission-details dbfl"><?php echo RM_UI_Strings::get('LABEL_SUBMITTED_ON'); ?> <?php echo RM_Utilities::localize_time($submission->submitted_on); ?></div>
            <div class="rm-submission-icon rm-submission-download difl">
               
            </div>
        </div>
    </div>
<?php } ?>