<?php
/**
 * Admin dashboard view
 *
 * @package wp-video-attention
 * @author InstaProduct
 * @link http://insta-product.com/
 */
?>
<div id="ipvisc-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 video.', IPVISC_SLUG ); ?>
                </div>
                <?php
                elseif ( isset( $_GET['delete'] )) :
                ?>
                <div class="ipvisc-alert ipvisc-alert-success" style="display: block;">
                    <?php _e( 'Successfully deleting a video.', IPVISC_SLUG ); ?>
                </div>
                <?php
                endif;
                ?>
            </div>

            <div class="ipvisc-primary">
                <?php
                require_once( IPVISC_LIB . 'tableMain.php' );
                $list = new IPVisc_Table_Main();
                $list->render();
                ?>
            </div>
        </div>

    </div>

</div>
