<?php
if (!defined('WPINC')) {
    die;
}
/**
 * @since 2.0.0
 * @package B1_Accounting
 * @subpackage B1_Accounting/admin/partials
 * @author Site.pro <apskaita@site.pro>
 * @link https://www.site.pro
 * @var B1_Accounting_Admin $this
 */
$nonce = wp_create_nonce('b1_security');
?>
<div class="wrap bootstrap-wrapper">
    <h1><?php esc_html_e('Site.pro accounting', 'b1-accounting'); ?>
        <a href="mailto:<?php echo $this->get_option('contact_email');// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" data-toggle="tooltip" title="<?php esc_html_e('Contacts', 'b1-accounting'); ?>" class="btn btn-default">
            <i class="fas fa-envelope"></i>
            <span class="hidden-xs"><?php esc_html_e('Contacts', 'b1-accounting'); ?></span>
        </a>
        <a href="<?php echo $this->get_option('documentation_url');// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" data-toggle="tooltip" title="<?php esc_html_e('Documentation', 'b1-accounting'); ?>" target="_blank" class="btn btn-default">
            <i class="fas fa-book"></i>
            <span class="hidden-xs"><?php esc_html_e('Documentation', 'b1-accounting'); ?></span>
        </a>
        <a href="<?php echo $this->get_option('help_page_url');// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" data-toggle="tooltip" title="<?php esc_html_e('Help', 'b1-accounting'); ?>" target="_blank" class="btn btn-default">
            <i class="fas fa-book"></i>
            <span class="hidden-xs"><?php esc_html_e('Help', 'b1-accounting'); ?></span>
        </a>
    </h1>
    <div class="error notice hidden" id="b1-error-alert">
        <p></p>
    </div>
    <div class="updated notice hidden" id="b1-success-alert">
        <p></p>
    </div>
    <ul class="nav nav-tabs">
        <li class="active">
            <a href="#settings" data-toggle="tab">
                <i class="fas fa-cogs"></i>
                <?php esc_html_e('Settings', 'b1-accounting'); ?>
            </a>
        </li>
        <li>
            <a href="#mapping" data-toggle="tab">
                <i class="fas fa-columns"></i>
                <?php esc_html_e('Field mapping', 'b1-accounting'); ?>
            </a>
        </li>
        <li>
            <a href="#logs" data-toggle="tab">
                <i class="fas fa-list"></i>
                <?php esc_html_e('Logs', 'b1-accounting'); ?>
            </a>
        </li>
        <li>
            <a href="#validations" data-toggle="tab">
                <i class="fas fa-file-alt"></i>
                <?php esc_html_e('Data validation', 'b1-accounting'); ?>
            </a>
        </li>
        <li>
            <a href="#debug" data-toggle="tab">
                <i class="fas fa-file-alt"></i>
                <?php esc_html_e('Debug', 'b1-accounting'); ?>
            </a>
        </li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane active padding-top-10" id="settings">
            <?php include_once 'tabs/settings.php'; ?>
        </div>
        <div class="tab-pane padding-top-10" id="mapping">
            <?php include_once 'tabs/mapping.php'; ?>
        </div>
        <div class="tab-pane padding-top-10" id="logs">
            <?php include_once 'tabs/logs.php'; ?>
        </div>
        <div class="tab-pane padding-top-10" id="validations">
            <?php include_once 'tabs/validations.php'; ?>
        </div>
        <div class="tab-pane padding-top-10" id="debug">
            <?php include_once 'tabs/debug.php'; ?>
        </div>
    </div>

</div>
