<?php
// Prevent direct access
if (! defined('ABSPATH')) {
  exit;
}
?>
<div class="wrap">
    <h1><?php echo esc_html( get_admin_page_title() ); ?></h1>

    <form method="post" id="boostify-generate-post">

        <label>Topic</label>
        <input type="text" name="boostify-post-topic" id="post-topic" placeholder="Enter Topic" required >

        <br/>

        <label>Max Word Count</label>
        <input type="number" name="boostify-word-count" id="post-word-count" placeholder="Max word Count" required >

        <br/>

        <label>Keyword</label>
        <input type="text" name="boostify-post-keywords" id="post-keyword" placeholder="Enter Keywords"  >
        
        <br/>

        <label>Post Date</label>
        <input type="date" name="boostify-post-date" id="post-date"  required >

        <br/>

        <label>Number of post</label>
        <input type="number" name="boostify-post-quantity" id="post-quantity" min="1" value="1"  max="10"  required  hidden>

        <br/>

        <input type="checkbox" name="boostify-include-meta-tags" id="include-meta-tags" value="yes" />
        <label>Generate meta tags</label>
        <br/> 
        <br/> 
        
        <input type="submit" class="button button-primary" value="Generate" >
        <span class="spinner" id="boostify-spinner"></span>
    </form>
    

    <table class="widefat striped" id="boostify-posts" hidden>
        <thead>
            <th><?php esc_html_e( 'Post Title', 'boostify-blog-ai' ); ?></th>
            <th><?php esc_html_e( 'Actions', 'boostify-blog-ai' ); ?></th>
        </thead>
        <tbody>
        </tbody>   
    </table>    
</div>
<?php
wp_enqueue_script( 'boosyify_blog_ai_admin_script');
