<?php
/**
 * Admin dashboard view
 *
 * @package wp-video-attention
 * @author InstaProduct
 * @link http://insta-product.com/
 */
?>
<div id="ipvisc-style-dashboard" class="wrap ipvisc-wrap ipvisc-admin">
  <div class="ipvisc-inner">

    <?php
    $this->view( 'manage/general/header' );
    ?>

    <div class="ipvisc-main">
      <div class="ipvisc-main-info">
        <?php
        if ( isset( $_GET['create'] )) :
        ?>
        <div class="ipvisc-alert ipvisc-alert-success" style="display: block;">
          <?php _e( 'Successfully add a style.', IPVISC_SLUG ); ?>
        </div>
        <?php
        elseif ( isset( $_GET['delete'] )) :
        ?>
        <div class="ipvisc-alert ipvisc-alert-success" style="display: block;">
          <?php _e( 'Successfully deleting a style.', IPVISC_SLUG ); ?>
        </div>
        <?php
        endif;
        ?>
      </div>

      <div class="ipvisc-primary">
        <div class="_add-button mb30">
          <?php
          $link = admin_url() . 'admin.php?page=' . IPVISC_PAGENAME . '-style' . '&action=add';
          ?>
          <a href="<?php echo $link; ?>" class="ipvisc-btn ipvisc-btn-success ipvisc-btn-sm _add-widget">
            <i class="ipvisc-fa ipvisc-fa-plus-circle"></i>
            <?php _e( 'Add New Style', IPSURV_SLUG ); ?>
          </a>
        </div>

        <?php
        require_once( IPVISC_LIB . 'tableStyle.php' );
        $list = new IPVisc_Table_Style();
        $list->render();
        ?>
      </div>
    </div>

  </div>

</div>
