<?php
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
?>
<!doctype html>
<html lang="en">

<head>
    <!-- Meta Title And Discription Dynamic Brands PHP Start -->
    <?php  //include 'includes/tags/tags.php';?>
    <!-- Meta Title And Discription Dynamic Brands PHP End -->

    <!-- Variable File Inlcude Start -->
    <?php  include 'includes/sections/variables-file.php';?>
    <!-- Variable File Inlcude End -->

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" type="image/x-icon" href="assets/images/logo.png">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.6/dist/jquery.fancybox.min.css">
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css">
    <link rel="stylesheet" href="assets/css/owl.carousel.min.css">
    <link rel="stylesheet" href="assets/css/owl.theme.default.min.css">
    <link rel="stylesheet" href="assets/css/custom.css">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.7.0/dist/jquery.min.js"></script>
</head>

<body>

//     <?php
// if (session_status() === PHP_SESSION_NONE) {
//     session_start();
// }

// // Agar user login nahi hai, current page ko session me store karo
// if (!isset($_SESSION['user_id'])) {
//     $_SESSION['redirect_after_login'] = $_SERVER['REQUEST_URI'];
// }
// ?>

    <header class="main-header">
        <div class="container-fluid w-75">
            <nav class="navbar navbar-expand-lg">
                <a class="navbar-brand" href="https://demo-webprojects.com/athlete-performance-custom/v3/">
                    <img src="assets/images/logo.png" alt="logo" class="logo">
                </a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
                    data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
                    aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarSupportedContent">
                    <div class="navbar-main-nav">
                        <ul class="navbar-nav">
                            <li class="nav-item">
                                <a class="nav-link"
                                    href="https://demo-webprojects.com/athlete-performance-custom/v3/">Home</a>
                            </li>
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" href="our-advantage" id="navbarDropdown">
                                    Our Advantage
                                </a>
                                <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                                    <li><a class="dropdown-item" href="3-reasons-why-athletes-should-test-with-us">3
                                            reasons why Athletes should test with us</a></li>
                                    <li><a class="dropdown-item" href="questions-athletes-often">5 questions
                                            athletes often ask about sport combine testing</a></li>
                                    <li><a class="dropdown-item" href="three-steps-for-athletes">Three steps for
                                            athletes to join and participate in a sport combine</a></li>
                                </ul>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="about-us">About us</a>
                            </li>
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" href="void:;" id="navbarDropdown">
                                    Pricing
                                </a>
                                <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                                    <li><a class="dropdown-item" href="list-of-drills-package">List of Drills
                                            Packages</a></li>
                                    <li><a class="dropdown-item" href="combine-packages">Combine Packages</a></li>
                                </ul>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="events.php">Events</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="drills-and-demonstrations.php">drills and demonstrations</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="contact-us">Contact Us</a>
                            </li>
                        </ul>
                        <div class="website-main-buttons">
                            <?php if (isset($_SESSION['user_id'])): ?>
                            <a class="call-btn" href="dashboard">Dashboard</a>
                            <?php else: ?>
                            <button class="popup-btn" data-bs-toggle="modal" data-bs-target="#authModal">Login</button>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>

            </nav>
        </div>
    </header>