<?php
if (!defined('ABSPATH')) exit;


/**
 * Add plugin admin menus
 */
add_action('admin_menu', 'acwbsrh_add_admin_menu');
function acwbsrh_add_admin_menu() {
    add_menu_page(
        __('Auto Blog Writer', 'auto-content-writer-by-srh'),
        __('Auto Blog Writer', 'auto-content-writer-by-srh'),
        'manage_options',
        'acwbsrh-main',
        'acwbsrh_settings_page',
        'dashicons-reddit'
    );

    add_submenu_page(
        'acwbsrh-main',
        __('Business Settings', 'auto-content-writer-by-srh'),
        __('Business Settings', 'auto-content-writer-by-srh'),
        'manage_options',
        'acwbsrh-main',
        'acwbsrh_settings_page'
    );

    add_submenu_page(
        'acwbsrh-main',
        __('Generate Instant Blog', 'auto-content-writer-by-srh'),
        __('Generate Instant Blog', 'auto-content-writer-by-srh'),
        'manage_options',
        'acwbsrh-manual',
        'acwbsrh_manual_blog_page'
    );

    add_submenu_page(
        'acwbsrh-main',
        __('Scheduled Settings', 'auto-content-writer-by-srh'),
        __('Scheduled Settings', 'auto-content-writer-by-srh'),
        'manage_options',
        'acwbsrh-schedule',
        'acwbsrh_schedule_page'
    );

    add_submenu_page(
        'acwbsrh-main',
        __('How To Use', 'auto-content-writer-by-srh'),
        __('How To Use', 'auto-content-writer-by-srh'),
        'manage_options',
        'acwbsrh-guide',
        'acwbsrh_how_to_use_page'
    );

    add_submenu_page(
        'acwbsrh-main',
        __('API', 'auto-content-writer-by-srh'),
        __('API', 'auto-content-writer-by-srh'),
        'manage_options',
        'acwbsrh-api',
        'acwbsrh_api_page'
    );
    
    // New "Coming Soon" submenu
    add_submenu_page(
        'acwbsrh-main',
        __('Coming Soon', 'auto-content-writer-by-srh'),
        __('Coming Soon', 'auto-content-writer-by-srh'),
        'manage_options',
        'acwbsrh-coming-soon',
        'acwbsrh_coming_soon_page'
    );
}