<?php
if ( ! defined( 'ABSPATH' ) ) exit;
// phpcs:ignoreFile

// phpcs:ignore WordPress.Security.NonceVerification.Recommended
$active_view = isset($_GET['view']) ? sanitize_text_field(wp_unslash($_GET['view'])) : 'expenses';
?>
<div class="tabs">
    <ul class="tab">
        <li class="tab-item <?php echo 'expenses' === $active_view ? 'active' : '' ?>">
            <a href="#expenses"><?php esc_html_e('Expenses', 'anbarak'); ?></a>
        </li>
    </ul>
    <div class="tabs__content pt-5">
        <div id="tab-expenses" class="<?php echo 'expenses' === $active_view ? 'active' : '' ?>">
            <?php require_once ANBARAK_PATH . 'admin/views/partials/finance/expenses.php' ?>
        </div>
    </div>
</div>
