<?php

if (! defined('ABSPATH')) exit;

 
function docuchat_document_module()
{
?>
    <div class="docuchatMain_container_body_content_paragrapFile">
        <p><?php echo esc_attr('Please select the document (', 'docu-chat'); ?>
            <i><?php echo esc_attr('PDF', 'docu-chat'); ?></i>
            <?php echo esc_attr(') to feed the ai (   ', 'docu-chat'); ?>
            <i><?php echo esc_attr('150mb max.', 'docu-chat'); ?> </i>
            <?php echo esc_attr(' ).', 'docu-chat'); ?>
        </p>
        <span><?php echo esc_attr('"We recommend using a text-only PDF, without images or graphics. This facilitates processing, reduces file size, improves compatibility, and ensures accurate extraction of textual data."', 'docu-chat'); ?></span>
        <span id="recomend"> <?php echo esc_attr('Recomendation: some time our server could be bussy, so, if see the error !you try to write a read only file!, try a cuppe of time to upload the file again', 'docu-chat'); ?> </span>
    </div>
    <form id="document_form" enctype="multipart/form-data" class="docuchatMain_container_body_content_form">
    <?php wp_nonce_field( 'upload' ); ?>
        <div class="docuchatMain_container_body_content_form_wrapper">
            <div class="docuchatMain_container_body_content_form_wrapper_input">
                <input id="fileNumberInput" type="number" name="fileNumber" required>
            </div>
            <div class="docuchatMain_container_body_content_form_wrapper_btnSelector">
                <span id="pdfSelector">
                    <?php echo esc_attr('Select PDF', 'docu-chat'); ?>
                </span>
            </div>
        </div>
        
        <input type="submit" value="Upload" class="docuchatMain_container_body_content_form_submit">
    </form>
<?php
}
