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

$aysa_agent8v3_show_qa_controls = defined('AYSA_AGENT8_V3_QA_ENABLED') && AYSA_AGENT8_V3_QA_ENABLED;
$aysa_release = function_exists('aysa_release_metadata') ? aysa_release_metadata() : array('plugin_version' => defined('AYSA_VERSION') ? AYSA_VERSION : '');
$aysa_display_name = (string) ($aysa_release['display_name'] ?? 'AYSA Agent8');
$aysa_release_channel = sanitize_key((string) ($aysa_release['release_channel'] ?? 'stable')) ?: 'stable';
$aysa_interface_language = function_exists('aysa_get_interface_language') ? aysa_get_interface_language() : 'ro';
$aysa_ui_ro = strpos(strtolower((string) $aysa_interface_language), 'ro') === 0;
$aysa_shell_text = static function ($romanian, $english) use ($aysa_ui_ro) {
    return $aysa_ui_ro ? $romanian : $english;
};
?>
<div class="wrap aysa-agent8v3-lab">
    <div class="aysa-agent8v3-app" lang="<?php echo esc_attr($aysa_interface_language); ?>">
        <header class="aysa-agent8v3-topbar">
            <div class="aysa-agent8v3-brand">
                <div class="aysa-agent8v3-logo" aria-hidden="true">A8</div>
                <div>
                    <h1><?php echo esc_html($aysa_display_name); ?></h1>
                    <div class="aysa-agent8v3-subtitle"><?php echo esc_html($aysa_shell_text('Workspace SEO', 'SEO workspace')); ?></div>
                </div>
                <span class="aysa-agent8v3-active-pill is-awaiting-activation"><span></span><?php echo esc_html($aysa_shell_text('Se încarcă…', 'Loading…')); ?></span>
            </div>
            <div class="aysa-agent8v3-topbar-actions">
                <span class="aysa-agent8v3-mode-pill" title="<?php echo esc_attr($aysa_shell_text('Canal de lansare: ', 'Release channel: ') . $aysa_release_channel); ?>">
                    <?php echo esc_html('v' . (string) ($aysa_release['plugin_version'] ?? '') . ' · ' . $aysa_release_channel); ?>
                </span>
                <button type="button" class="button aysa-agent8v3-report-problem" id="aysa-agent8v3-report-problem"><?php echo esc_html($aysa_shell_text('Raportează o problemă', 'Report a problem')); ?></button>
                <?php if ($aysa_agent8v3_show_qa_controls): ?>
                    <button type="button" class="button aysa-agent8v3-factory-reset" id="aysa-agent8v3-factory-reset" title="<?php echo esc_attr($aysa_shell_text('Previzualizează fiecare ștergere allowlisted înainte de resetarea completă a testului.', 'Preview every allowlisted deletion before the full test reset.')); ?>"><?php echo esc_html($aysa_shell_text('Reset complet test…', 'Full test reset…')); ?></button>
                    <button type="button" class="button aysa-agent8v3-full-reset" id="aysa-agent8v3-full-reset" title="<?php echo esc_attr($aysa_shell_text('Resetează doar progresul curent Agent8, fără inventarul complet de ștergere.', 'Reset only the current Agent8 progress without the full deletion inventory.')); ?>"><?php echo esc_html($aysa_shell_text('Reset progres Agent8', 'Reset Agent8 progress')); ?></button>
                    <button type="button" class="aysa-agent8v3-icon-button" id="aysa-agent8v3-debug-toggle" aria-label="Toggle debug log">⚙</button>
                <?php endif; ?>
                <div class="aysa-agent8v3-avatar" aria-hidden="true"></div>
                <div class="aysa-agent8v3-status" data-agent8v3-status="idle">idle</div>
            </div>
        </header>

        <div class="aysa-agent8v3-workspace">
            <main class="aysa-agent8v3-main" aria-label="<?php echo esc_attr($aysa_shell_text('Conversație Agent8', 'Agent8 conversation')); ?>">
                <section class="aysa-agent8v3-chat-panel" aria-label="<?php echo esc_attr($aysa_shell_text('Fereastră conversație Agent8', 'Agent8 chat window')); ?>">
                    <div class="aysa-agent8v3-chat-head">
                        <div>
                            <span class="aysa-agent8v3-chat-eyebrow"><?php echo esc_html($aysa_shell_text('Conversație', 'Conversation')); ?></span>
                            <strong><?php echo esc_html($aysa_shell_text('Execuție Agent8', 'Agent8 Execution')); ?></strong>
                        </div>
                        <span class="aysa-agent8v3-chat-phase" id="aysa-agent8v3-chat-phase"><?php echo esc_html($aysa_shell_text('așteaptă actualizări', 'waiting for updates')); ?></span>
                    </div>
                    <div class="aysa-agent8v3-chat-scroll" id="aysa-agent8v3-chat-scroll">
                        <div class="aysa-agent8v3-messages" id="aysa-agent8v3-messages"></div>
                    </div>
                    <div class="aysa-agent8v3-actions" id="aysa-agent8v3-actions"></div>
                    <?php if ($aysa_agent8v3_show_qa_controls): ?>
                        <section class="aysa-agent8v3-debug-card" aria-label="Agent8 debug">
                            <pre id="aysa-agent8v3-debug" hidden></pre>
                        </section>
                    <?php endif; ?>
                    <section class="aysa-agent8v3-composer-panel" aria-label="<?php echo esc_attr($aysa_shell_text('Editor mesaj Agent8', 'Agent8 composer')); ?>">
                        <div class="aysa-agent8v3-composer">
                            <textarea id="aysa-agent8v3-input" rows="3" aria-label="<?php echo esc_attr($aysa_shell_text('Mesaj pentru AYSA Agent 8', 'Message for AYSA Agent 8')); ?>" placeholder="<?php echo esc_attr($aysa_shell_text('Descrie sarcina pentru AYSA Agent 8...', 'Describe the task for AYSA Agent 8...')); ?>"></textarea>
                            <button type="button" id="aysa-agent8v3-send" aria-label="<?php echo esc_attr($aysa_shell_text('Trimite mesajul', 'Send message')); ?>">➤</button>
                        </div>
                        <div class="aysa-agent8v3-composer-toolbar">
                            <button type="button" class="aysa-agent8v3-plus" aria-label="<?php echo esc_attr($aysa_shell_text('Adaugă context', 'Add context')); ?>">+</button>
                            <span class="aysa-agent8v3-auth-pill is-loading"><?php echo esc_html($aysa_shell_text('Se încarcă…', 'Loading…')); ?></span>
                            <label class="screen-reader-text" for="aysa-agent8v3-language"><?php echo esc_html($aysa_shell_text('Limba Agent8', 'Agent8 language')); ?></label>
                            <select id="aysa-agent8v3-language" class="aysa-agent8v3-language" aria-label="<?php echo esc_attr($aysa_shell_text('Limba Agent8', 'Agent8 language')); ?>">
                                <option value="ro"<?php selected(strtolower((string) $aysa_interface_language), 'ro'); ?>><?php echo esc_html($aysa_shell_text('Română', 'Romanian')); ?></option>
                                <option value="en-GB"<?php selected(strtolower((string) $aysa_interface_language), 'en-gb'); ?>><?php echo esc_html($aysa_shell_text('Engleză (Europa/Regatul Unit)', 'English (Europe/UK)')); ?></option>
                                <option value="en-US"<?php selected(strtolower((string) $aysa_interface_language), 'en-us'); ?>><?php echo esc_html($aysa_shell_text('Engleză (Statele Unite)', 'English (United States)')); ?></option>
                                <option value="en-CA"<?php selected(strtolower((string) $aysa_interface_language), 'en-ca'); ?>><?php echo esc_html($aysa_shell_text('Engleză (Canada)', 'English (Canada)')); ?></option>
                                <option value="fr">French</option>
                                <option value="fr-CA">French (Canada)</option>
                                <option value="ar-AE">Arabic (Dubai/UAE)</option>
                                <option value="sq">Albanian</option>
                                <option value="hy">Armenian</option>
                                <option value="az">Azerbaijani</option>
                                <option value="eu">Basque</option>
                                <option value="be">Belarusian</option>
                                <option value="bs">Bosnian</option>
                                <option value="bg">Bulgarian</option>
                                <option value="ca">Catalan</option>
                                <option value="hr">Croatian</option>
                                <option value="cs">Czech</option>
                                <option value="da">Danish</option>
                                <option value="nl">Dutch</option>
                                <option value="et">Estonian</option>
                                <option value="fi">Finnish</option>
                                <option value="gl">Galician</option>
                                <option value="ka">Georgian</option>
                                <option value="de">German</option>
                                <option value="el">Greek</option>
                                <option value="hu">Hungarian</option>
                                <option value="is">Icelandic</option>
                                <option value="ga">Irish</option>
                                <option value="it">Italian</option>
                                <option value="lv">Latvian</option>
                                <option value="lt">Lithuanian</option>
                                <option value="lb">Luxembourgish</option>
                                <option value="mk">Macedonian</option>
                                <option value="mt">Maltese</option>
                                <option value="no">Norwegian</option>
                                <option value="pl">Polish</option>
                                <option value="pt">Portuguese</option>
                                <option value="ru">Russian</option>
                                <option value="sr">Serbian</option>
                                <option value="sk">Slovak</option>
                                <option value="sl">Slovenian</option>
                                <option value="es">Spanish</option>
                                <option value="sv">Swedish</option>
                                <option value="tr">Turkish</option>
                                <option value="uk">Ukrainian</option>
                                <option value="cy">Welsh</option>
                                <option value="yi">Yiddish</option>
                            </select>
                            <span class="aysa-agent8v3-mode-pill"><?php echo esc_html($aysa_shell_text('SEO automatizat', 'Automated SEO')); ?></span>
                        </div>
                    </section>
                </section>
                <section class="aysa-agent8v3-module-workspace" id="aysa-agent8v3-module-workspace" hidden aria-label="<?php echo esc_attr($aysa_shell_text('Spațiu modul Agent8', 'Agent8 module workspace')); ?>"></section>
            </main>

            <aside class="aysa-agent8v3-diagnostics" aria-label="<?php echo esc_attr($aysa_shell_text('Progres și diagnostic Agent8', 'Agent8 progress and diagnostics')); ?>">
                <section class="aysa-agent8v3-progress-panel" aria-label="<?php echo esc_attr($aysa_shell_text('Progres Agent8', 'Agent8 progress')); ?>">
                    <div class="aysa-agent8v3-progress-panel-head">
                        <h2><?php echo esc_html($aysa_shell_text('Progres Agent8', 'Agent8 progress')); ?></h2>
                        <p><?php echo esc_html($aysa_shell_text('Îți arătăm unde ești și ce urmează.', 'See where you are and what comes next.')); ?></p>
                    </div>
                    <div id="aysa-agent8v3-setup-progress-panel"></div>
                </section>

                <?php if ($aysa_agent8v3_show_qa_controls): ?>
                    <section class="aysa-agent8v3-diagnostics-header">
                        <h2>QA Diagnostics</h2>
                        <button type="button" class="button" id="aysa-agent8v3-qa-toggle">Detalii tehnice</button>
                    </section>

                    <section class="aysa-agent8v3-qa" id="aysa-agent8v3-qa">
                        <div class="aysa-agent8v3-qa-body" id="aysa-agent8v3-qa-body" hidden>
                            <p class="aysa-agent8v3-qa-disabled" id="aysa-agent8v3-qa-disabled" hidden>QA is disabled. Define AYSA_AGENT8_V3_QA_ENABLED=true to enable diagnostics.</p>
                            <div class="aysa-agent8v3-qa-buttons">
                                <button type="button" class="button button-primary aysa-agent8v3-qa-run" data-suite="all">Run All Tests</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="state">Run State Tests</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="setup">Run Setup Tests</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="research">Run Research Test</button>
                                <button type="button" class="button button-primary aysa-agent8v3-qa-run" data-suite="setup_stress">Setup Stress Test</button>
                                <button type="button" class="button button-primary aysa-agent8v3-qa-run" data-suite="setup_integration_stress">Integration Stress Test</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="action">Run Action Tests</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="llm">Run LLM Tests</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="worker">Run Worker Test</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="rag">Run RAG Test</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="language">Run Language Tests</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="deploy_parity">Verify Deploy Parity</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="legacy_sync">Verify Legacy Sync</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="invalid_action">Run Invalid Action Tests</button>
                                <button type="button" class="button aysa-agent8v3-qa-run" data-suite="reset">Run Reset Test</button>
                                <button type="button" class="button button-primary aysa-agent8v3-qa-run" data-suite="stress_15m">Run 15 Min Stress Test</button>
                                <button type="button" class="button" id="aysa-agent8v3-qa-stop">Stop Stress Test</button>
                                <button type="button" class="button" id="aysa-agent8v3-qa-clear">Clear QA Log</button>
                                <button type="button" class="button" id="aysa-agent8v3-qa-export">Export QA Log JSON</button>
                            </div>
                            <div id="aysa-agent8v3-qa-summary" class="aysa-agent8v3-qa-summary"></div>
                            <div id="aysa-agent8v3-qa-results" class="aysa-agent8v3-qa-results"></div>
                        </div>
                    </section>
                <?php endif; ?>

                <section class="aysa-agent8v3-metric-card">
                    <h3>System Status</h3>
                    <div id="aysa-agent8v3-projection" class="aysa-agent8v3-projection"></div>
                    <?php if ($aysa_agent8v3_show_qa_controls): ?>
                        <div class="aysa-agent8v3-metric-row"><span>QA Storage</span><strong id="aysa-agent8v3-qa-storage">Enabled</strong></div>
                    <?php endif; ?>
                    <div class="aysa-agent8v3-metric-row"><span>Request ID</span><strong id="aysa-agent8v3-request-id">-</strong></div>
                </section>

                <section class="aysa-agent8v3-metric-card aysa-agent8v3-credits-card">
                    <h3>Credits</h3>
                    <div id="aysa-agent8v3-credits">
                        <div class="aysa-agent8v3-metric-row"><span>Available</span><strong>-</strong></div>
                        <div class="aysa-agent8v3-metric-row"><span>Step Used</span><strong>0</strong></div>
                        <div class="aysa-agent8v3-metric-row"><span>Status</span><strong>free</strong></div>
                    </div>
                </section>

                <?php if ($aysa_agent8v3_show_qa_controls): ?>
                    <section class="aysa-agent8v3-metric-card aysa-agent8v3-active-test">
                        <h3>Active Test</h3>
                        <div id="aysa-agent8v3-active-test">
                            <div class="aysa-agent8v3-metric-row"><span>Name</span><strong>Idle</strong></div>
                            <div class="aysa-agent8v3-metric-row"><span>Current Phase</span><strong>-</strong></div>
                            <div class="aysa-agent8v3-metric-row"><span>Steps</span><strong>0</strong></div>
                            <div class="aysa-agent8v3-metric-row"><span>Result</span><strong>-</strong></div>
                        </div>
                    </section>

                    <section class="aysa-agent8v3-metric-card">
                        <h3>Recent Actions</h3>
                        <div id="aysa-agent8v3-recent-actions" class="aysa-agent8v3-recent-actions"></div>
                    </section>

                    <section class="aysa-agent8v3-metric-card">
                        <h3>Performance</h3>
                        <div id="aysa-agent8v3-performance">
                            <div class="aysa-agent8v3-metric-row"><span>Avg Response</span><strong>0ms</strong></div>
                            <div class="aysa-agent8v3-metric-row"><span>Throughput</span><strong>0/s</strong></div>
                            <div class="aysa-agent8v3-metric-row"><span>Error Rate</span><strong>0%</strong></div>
                        </div>
                    </section>

                    <details class="aysa-agent8v3-metric-card aysa-agent8v3-state-card">
                        <summary>Canonical State</summary>
                        <pre id="aysa-agent8v3-state">{}</pre>
                    </details>
                <?php endif; ?>
            </aside>
        </div>

        <div class="aysa-agent8v3-modal" id="aysa-agent8v3-modal" hidden aria-hidden="true">
            <div class="aysa-agent8v3-modal-overlay" data-agent8v3-modal-close></div>
            <section class="aysa-agent8v3-modal-dialog" role="dialog" aria-modal="true" aria-labelledby="aysa-agent8v3-modal-title" tabindex="-1">
                <header class="aysa-agent8v3-modal-header">
                    <div>
                        <h2 id="aysa-agent8v3-modal-title">Review</h2>
                        <p id="aysa-agent8v3-modal-subtitle"></p>
                    </div>
                    <button type="button" class="aysa-agent8v3-modal-close" id="aysa-agent8v3-modal-close" aria-label="<?php echo esc_attr($aysa_shell_text('Închide review-ul', 'Close review')); ?>">×</button>
                </header>
                <div class="aysa-agent8v3-modal-summary" id="aysa-agent8v3-modal-summary"></div>
                <div class="aysa-agent8v3-modal-toolbar">
                    <label class="screen-reader-text" for="aysa-agent8v3-modal-search"><?php echo esc_html($aysa_shell_text('Caută în datele review-ului', 'Search review data')); ?></label>
                    <input type="search" id="aysa-agent8v3-modal-search" placeholder="<?php echo esc_attr($aysa_shell_text('Caută...', 'Search...')); ?>" autocomplete="off">
                    <label class="screen-reader-text" for="aysa-agent8v3-modal-status"><?php echo esc_html($aysa_shell_text('Status review', 'Review status')); ?></label>
                    <select id="aysa-agent8v3-modal-status">
                        <option value="all"><?php echo esc_html($aysa_shell_text('Toate', 'All')); ?></option>
                        <option value="accepted"><?php echo esc_html($aysa_shell_text('Acceptate', 'Accepted')); ?></option>
                        <option value="rejected"><?php echo esc_html($aysa_shell_text('Respinse', 'Rejected')); ?></option>
                    </select>
                </div>
                <div class="aysa-agent8v3-modal-body" id="aysa-agent8v3-modal-body"></div>
                <footer class="aysa-agent8v3-modal-footer">
                    <div class="aysa-agent8v3-modal-actions" id="aysa-agent8v3-modal-actions"></div>
                    <span id="aysa-agent8v3-modal-page">-</span>
                    <div>
                        <button type="button" class="button" id="aysa-agent8v3-modal-prev"><?php echo esc_html($aysa_shell_text('Înapoi', 'Previous')); ?></button>
                        <button type="button" class="button" id="aysa-agent8v3-modal-next"><?php echo esc_html($aysa_shell_text('Înainte', 'Next')); ?></button>
                    </div>
                </footer>
            </section>
        </div>
        <div class="aysa-agent8v3-issue-modal" id="aysa-agent8v3-issue-modal" hidden aria-hidden="true">
            <div class="aysa-agent8v3-issue-overlay" data-agent8v3-issue-close></div>
            <section class="aysa-agent8v3-issue-dialog" role="dialog" aria-modal="true" aria-labelledby="aysa-agent8v3-issue-title" tabindex="-1">
                <header class="aysa-agent8v3-issue-header">
                    <div>
                        <h2 id="aysa-agent8v3-issue-title"><?php echo esc_html($aysa_shell_text('Raportează o problemă', 'Report a problem')); ?></h2>
                        <p class="aysa-agent8v3-issue-intro"><?php echo esc_html($aysa_shell_text('Trimitem o descriere pentru suport și detalii tehnice sigure către echipa AYSA. Nu includem chei, tokenuri, cookies, parole sau conținut complet de pagină.', 'We send a support description and safe technical details to the AYSA team. We do not include keys, tokens, cookies, passwords, or complete page content.')); ?></p>
                    </div>
                    <button type="button" class="aysa-agent8v3-modal-close" data-agent8v3-issue-close aria-label="<?php echo esc_attr($aysa_shell_text('Închide raportarea', 'Close report')); ?>">×</button>
                </header>
                <div class="aysa-agent8v3-issue-body">
                    <label for="aysa-agent8v3-issue-summary"><?php echo esc_html($aysa_shell_text('Ce nu funcționează?', 'What is not working?')); ?></label>
                    <textarea id="aysa-agent8v3-issue-summary" rows="5" placeholder="<?php echo esc_attr($aysa_shell_text('Descrie pe scurt ce ai încercat, ce ai văzut și ce te așteptai să se întâmple.', 'Briefly describe what you tried, what you saw, and what you expected to happen.')); ?>"></textarea>
                    <div class="aysa-agent8v3-issue-grid">
                        <label class="aysa-agent8v3-issue-module-label"><?php echo esc_html($aysa_shell_text('Modul', 'Module')); ?>
                            <select id="aysa-agent8v3-issue-module">
                                <option value="agent8_v3">Agent8</option>
                                <option value="activation_setup"><?php echo esc_html($aysa_shell_text('Activare / Configurare', 'Activation / Setup')); ?></option>
                                <option value="keyword_research">Keyword Research</option>
                                <option value="technical_seo">Technical SEO</option>
                                <option value="onpage">On Page</option>
                                <option value="content_plan">Content Plan</option>
                                <option value="monitoring">Monitoring</option>
                                <option value="offpage">Off Page</option>
                                <option value="billing"><?php echo esc_html($aysa_shell_text('Facturare / Credite', 'Billing / Credits')); ?></option>
                                <option value="plugin_ui"><?php echo esc_html($aysa_shell_text('Interfață plugin', 'Plugin interface')); ?></option>
                            </select>
                        </label>
                        <label class="aysa-agent8v3-issue-type-label"><?php echo esc_html($aysa_shell_text('Ce fel de problemă pare?', 'What type of problem is this?')); ?>
                            <select id="aysa-agent8v3-issue-type">
                                <option value="cannot_continue"><?php echo esc_html($aysa_shell_text('Nu pot continua', 'I cannot continue')); ?></option>
                                <option value="confusing_wrong"><?php echo esc_html($aysa_shell_text('Pare greșit / confuz', 'It looks wrong / confusing')); ?></option>
                                <option value="credit_consumed"><?php echo esc_html($aysa_shell_text('S-a consumat credit', 'Credits were consumed')); ?></option>
                                <option value="email_missing"><?php echo esc_html($aysa_shell_text('Emailul nu a venit', 'The email did not arrive')); ?></option>
                                <option value="other"><?php echo esc_html($aysa_shell_text('Altceva', 'Other')); ?></option>
                            </select>
                        </label>
                        <label class="aysa-agent8v3-issue-email-label"><?php echo esc_html($aysa_shell_text('Email suport, opțional', 'Support email, optional')); ?>
                            <input type="email" id="aysa-agent8v3-issue-email" placeholder="email@example.com">
                        </label>
                        <label class="aysa-agent8v3-issue-screenshot-label"><?php echo esc_html($aysa_shell_text('Captură de ecran', 'Screenshot')); ?>
                            <select id="aysa-agent8v3-issue-screenshot-consent">
                                <option value="no"><?php echo esc_html($aysa_shell_text('Nu atașa o captură acum', 'Do not attach a screenshot now')); ?></option>
                                <option value="yes"><?php echo esc_html($aysa_shell_text('Pot trimite captura separat', 'I can send the screenshot separately')); ?></option>
                            </select>
                        </label>
                    </div>
                    <details>
                        <summary><?php echo esc_html($aysa_shell_text('Ce context sigur atașăm', 'Safe context included')); ?></summary>
                        <ul>
                            <li><?php echo esc_html($aysa_shell_text('Ultimele acțiuni UI, maximum 50, fără secrete.', 'The latest UI actions, up to 50, without secrets.')); ?></li>
                            <li><?php echo esc_html($aysa_shell_text('Faza Agent8, modulul curent, statusul vizibil și URL-ul admin curent.', 'Agent8 phase, current module, visible status, and current admin URL.')); ?></li>
                            <li><?php echo esc_html($aysa_shell_text('Wallet și status credite doar ca rezumat, fără modificări.', 'Wallet and credit status as a summary only, without changes.')); ?></li>
                        </ul>
                    </details>
                    <div class="aysa-agent8v3-issue-result" id="aysa-agent8v3-issue-result"></div>
                </div>
                <footer class="aysa-agent8v3-issue-footer">
                    <button type="button" class="button" data-agent8v3-issue-close><?php echo esc_html($aysa_shell_text('Renunță', 'Cancel')); ?></button>
                    <button type="button" class="button button-primary" id="aysa-agent8v3-issue-submit"><?php echo esc_html($aysa_shell_text('Trimite raportul', 'Send report')); ?></button>
                </footer>
            </section>
        </div>
    </div>
</div>
