<div class="wrap">
<div id="smpush-icon-push" class="icon32"><br></div>
<h2><?php echo get_admin_page_title();?></h2>

<div id="available-widgets" class="widgets-holder-wrap ui-droppable" style="clear:both;">
  <div class="sidebar-name">
    <div class="sidebar-name-arrow"><br></div>
    <h3><?php echo esc_html__('Send Progress', 'smio-push-notification')?></h3>
  </div>
  <div class="widget-holder">
    <div class="smpush_progress">
        <div id="smpush_progressbar"><div class="smpush_progress_label"><?php echo esc_html__('Loading...', 'smio-push-notification')?></div></div>
        <div id="smpush_progressinfo"></div>
        <input type="button" id="cancel_push" class="button button-primary" value="<?php echo esc_html__('Cancel Send Operation', 'smio-push-notification')?>" />
    </div>
  </div>
  <br class="clear">
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
  "use strict";

  jQuery("#smpush_progressbar").progressbar({"value": 0});
  <?php if($resumsend === false){?>
  SMPUSH_ProccessQueue('<?php echo admin_url();?>', <?php echo esc_js($allcount);?>, <?php echo esc_js($increration);?>);
  <?php }else{?>
  SMPUSH_RunQueue('<?php echo admin_url();?>', <?php echo esc_js($allcount);?>);
  <?php }?>
  jQuery("#cancel_push").on("click", function(){
    setTimeout(smpush_resum_timer);
    window.location = '<?php echo admin_url();?>admin.php?page=smpush_cancelqueue&noheader=1';
  });
});
</script>
