{% autoescape %}
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-4">
    <div class="container-fluid">
        <a class="navbar-brand" href="#" data-route="/">{{app_name}}</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="#" data-route="/">{{ trans('Overview') }}</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#" data-route="/categories">{{ trans('Categories') }}</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#" data-route="/parts">{{ trans('Parts') }}</a>
                </li>
            </ul>
            <ul class="navbar-nav">
                <li class="nav-item">
                    <select class="form-select form-select-sm" onchange="window.location.href='/lang/' + this.value">
                        {% for locale in supported_locales %}
                        <option value="{{ locale }}" {% if current_locale == locale %}selected{% endif %}>{{ trans('language_' ~ locale) }}</option>
                        {% endfor %}
                    </select>
                </li>
            </ul>
        </div>
    </div>
</nav>
{% endautoescape %}