{% load static %}
{% load i18n %}
{% if perms.buybackprogram.manage_programs or perms.buybackprogram.manage_all_programs %}
    <li class="nav-item dropdown">
        <a href="#" class="nav-link bbp-nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false">
            <span class="bbp-nav-btn bbp-nav-btn-manage"><i class="fas fa-tools"></i> {% trans "Manage" %} <i class="fas fa-caret-down ms-1"></i></span>
        </a>
        <ul class="dropdown-menu dropdown-menu-end bbp-nav-dropdown">
            <li>
                <a class="dropdown-item" href="{% url 'buybackprogram:setup' %}">
                    <i class="fas fa-user-plus fa-fw me-2"></i>{% trans "1. Setup Manager" %}
                </a>
            </li>
            <li>
                <a class="dropdown-item" href="{% url 'buybackprogram:location_add' %}">
                    <i class="fas fa-map-marker-alt fa-fw me-2"></i>{% trans "2. Add/edit location" %}
                </a>
            </li>
            <li>
                <a class="dropdown-item" href="{% url 'buybackprogram:program_add' %}">
                    <i class="fas fa-plus-circle fa-fw me-2"></i>{% trans "3. Create Program" %}
                </a>
            </li>
            <li><hr class="dropdown-divider"></li>
            <li>
                <a class="dropdown-item" href="{% url 'buybackprogram:manual_contract_sync' %}">
                    <i class="fas fa-sync-alt fa-fw me-2"></i>{% trans "Refresh Contracts" %}
                </a>
            </li>
            <li>
                <a class="dropdown-item" href="{% url 'buybackprogram:trigger_price_update' %}">
                    <i class="fas fa-tags fa-fw me-2"></i>{% trans "Force Price Update" %}
                </a>
            </li>
        </ul>
    </li>
{% endif %}
