<!-- Your template file -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{% static '/style/style.css' %}">
    <title>WorldOfSpeed</title>
</head>
<body>
<div id="box">
    <header>
        <!-- Navigation Bar -->
        <div class="navbar">
            <h1>
                <a class="index-navigation" href="{% url 'index' %}"><span>World of Speed</span></a>
            </h1>
            <nav>
                {% if has_profile %}
                    <a href="{% url 'catalogue_view' %}">Catalogue</a>
                    <a href="{% url 'create_car' %}">Create Car</a>
                    <a href="{% url 'details_profile' %}">Profile</a>
                    <!-- Add Logout link -->
                    <a href="{% url 'logout' %}">Logout</a>
                {% else %}
                    <!-- Display link for users without profiles -->
                    <a href="{% url 'create_profile' %}">Create Profile</a>
                {% endif %}
            </nav>
        </div>
    </header>
    {% block main_content %}
    {% endblock %}
    <footer>&copy;SoftUni Team 2024. All rights reserved.</footer>
</div>
</body>
</html>