{% if current_user.is_authenticated %}
{#
Display navigation options based on the authenticated user's role.
Job seekers (role: "unemployed") can view available jobs and their own applications.
Recruiters and admins can post new jobs, view the jobs list and access the recruiter dashboard.
#}
{% if current_user.role == 'unemployed' %}
JobsMy Applications
{% elif current_user.role in ('recruiter', 'admin') %}
Add JobView JobsDashboard
{% endif %}
Welcome, {{ current_user.username }}Logout
{% else %}
Log InSign Up
{% endif %}
💬
{% block hero %}{% endblock %}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{# -------------------------------------------------------------------------
Chatbot UI scripts and styles
The following script powers the floating chatbot widget located at the
bottom right of every page. When the user clicks the 💬 button, the
widget toggles visibility. Pressing Enter in the input box sends the
message to the `/chatbot` endpoint defined in ``app.py``. Both user
and bot messages are appended to the conversation pane with simple
styling defined below. Jinja's ``url_for`` helper is used to
dynamically generate the correct path to the endpoint at render time.
#}