<?php
/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */
?>
<?= $escaper->escapeHtml(sprintf(__('&copy; %s'), date('Y'))) ?> 
<?= /* @noEscape */ sprintf(
    __("<a href=\"%s\" target=\"_blank\" >WriteText.ai</a>"
        . " by "
        . "<a href=\"%s\" target=\"_blank\" >1902 Software</a>"),
    'https://writetext.ai/',
    'https://1902software.com/magento/'
) ?> 
<span class="wtai-separator" >|</span>
<a href="https://writetext.ai/create-a-ticket" target="_blank">
    <?= $escaper->escapeHtml(__('Send feedback')) ?>
</a>
<span class="wtai-separator" >|</span>
<?= $escaper->escapeHtml(sprintf(__('version %s'), $block->getModuleVersion())) ?>
<?php
    $apiAuthUrl = $block->getApiAuthUrl();
    $showDebugInfo = (strpos($apiAuthUrl, '-dev') !== false || strpos($apiAuthUrl, '-staging') !== false);
?>
<?php if ($showDebugInfo): ?>
<span class="wtai-separator" >|</span>
    <?= $escaper->escapeHtml(__('API: ' . (strpos($block->getApiAuthUrl(), '-dev') !== false ? 'dev' : 'staging'))) ?>
<span class="wtai-separator" >|</span>
    <?= $escaper->escapeHtml(__('KO: ' . ($block->getKoDev() ? 'dev' : 'live'))) ?>
<span class="wtai-separator" >|</span>
    <?= $escaper->escapeHtml(__('Build: ' . $block->getBuildNo())) ?>
<?php endif; ?>
