<?php
defined('ABSPATH') || exit;
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
$links = [
    'fortisrestore' => ['Dashboard', 'dashicons-dashboard'],
    'fortisrestore-backups' => ['Backups', 'dashicons-database'],
    'fortisrestore-restore' => ['Restore', 'dashicons-backup'],
    'fortisrestore-settings' => ['Settings', 'dashicons-admin-generic'],
];
?>
<aside>
    <div class="fortis-brand"><img src="<?php echo  esc_url(plugins_url('../assets/images/fortisrestore-logo.png', __FILE__)) ?>" alt="FortisRestore"></div>
    <nav><?php foreach ($links as $slug => $item): ?><a class="<?php echo  ($current ?? 'fortisrestore') === $slug ? 'active' : '' ?>" href="<?php echo  esc_url(admin_url('admin.php?page=' . $slug)) ?>"><span class="dashicons <?php echo  esc_attr($item[1]) ?>"></span><?php echo  esc_html($item[0]) ?></a><?php endforeach; ?></nav>
    <footer><i></i> Free plan</footer>
</aside>
