<?php
/**
 * Provide a admin area view for the plugin
 *
 * This file is used to markup the admin-facing aspects of the plugin.
 *
 * @link       https://wondercode.pro/
 * @since      2.0.0
 *
 * @package    YouTube_Automate
 * @subpackage YouTube_Automate/admin
 */

// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$include_template = true;

$module = ( isset( $_GET['module'] ) ) ? sanitize_text_field( $_GET['module'] ) : 'default';

switch ( $module ) {
    case 'posts':
        $title = esc_html__( 'Settings [Posts]', 'easy-youtube-automate' );
        $tab   = 'posts.php';
        break;
    case 'main-settings':
        $title = esc_html__( 'Settings [Main Settings]', 'easy-youtube-automate' );
        $tab   = 'main_settings.php';
        break;
    case 'affiliation':
        $title = esc_html__( 'Miscellaneous [Affiliation]', 'easy-youtube-automate' );
        $tab   = 'affiliation.php';
        break;
    case 'logs':
        $title = esc_html__( 'Miscellaneous [Logs]', 'easy-youtube-automate' );
        $tab   = 'logs.php';
        break;
    case 'bulk-settings':
        $title = esc_html__( 'Pro [Bulk Settings]', 'easy-youtube-automate' );
        $tab   = 'bulk_settings.php';
        break;
    case 'bulk-generation':
        $title = esc_html__( 'Pro [Bulk Generation]', 'easy-youtube-automate' );
        $tab   = 'bulk_generation.php';
        break;
    case 'account':
        $title = esc_html__( 'Account', 'easy-youtube-automate' );
        $tab   = 'account.php';
        break;
    case 'contact':
        $title = esc_html__( 'Contact', 'easy-youtube-automate' );
        $tab   = 'contact.php';
        break;
    default:
        $title = esc_html__( 'Dashboard', 'easy-youtube-automate' );
        $tab   = 'dashboard.php';
}



include_once( 'header.php' );
include_once( 'tabs/' . $tab );
include_once( 'footer.php' );

?>