<?php

/**

 * Centralized Navigation Menu for SensFRX Plugin

 *

 * This file contains the main navigation tabs used across all admin pages

 *

 * @package    SensFRX

 * @subpackage SensFRX/admin/partials

 */



if (!defined('WPINC')) {

    die;

}



// Get current tab

$current_tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : 'dashboard';

?>



<nav class="sensfrx-nav-tabs">

    <a href="?page=sensfrx_fpwoo&tab=dashboard" class="sensfrx-nav-tab <?php echo ($current_tab === 'dashboard' || $current_tab === '') ? 'active' : ''; ?>">

        Dashboard

    </a>

    <a href="?page=sensfrx_fpwoo&tab=validation-rules" class="sensfrx-nav-tab <?php echo $current_tab === 'validation-rules' ? 'active' : ''; ?>">

        Validation Rules

    </a>

    <a href="?page=sensfrx_fpwoo&tab=fraud" class="sensfrx-nav-tab <?php echo $current_tab === 'fraud' ? 'active' : ''; ?>">

        Fraud Intelligence

    </a>

    <a href="?page=sensfrx_fpwoo&tab=settings" class="sensfrx-nav-tab <?php echo $current_tab === 'settings' ? 'active' : ''; ?>">

        Settings

    </a>

    <a href="?page=sensfrx_fpwoo&tab=fraud-protection" class="sensfrx-nav-tab <?php echo $current_tab === 'fraud-protection' ? 'active' : ''; ?>">

        Fraud Protection

    </a>

    <a href="?page=sensfrx_fpwoo&tab=activity" class="sensfrx-nav-tab <?php echo $current_tab === 'activity' ? 'active' : ''; ?>">

        Activity Logs

    </a>

    <a href="?page=sensfrx_fpwoo&tab=review" class="sensfrx-nav-tab sensfrx-nav-tab-highlight <?php echo $current_tab === 'review' ? 'active' : ''; ?>">

        Fraud Review

        <span class="sensfrx-nav-badge" id="sensfrx-review-count">0</span>

    </a>

    <?php /* COMMENTED OUT - Email Customization UI - Will add partial customization later

    <a href="?page=sensfrx_fpwoo&tab=email-notifications" class="sensfrx-nav-tab <?php echo $current_tab === 'email-notifications' ? 'active' : ''; ?>">

        Email Notifications

    </a>

    */ ?>

</nav>

