{% macro render_submenu_left(id, icon, label, items) %}
  <li class="left-side has-submenu">
    <input type="checkbox" id="submenu-toggle-{{ id }}" />
    <label for="submenu-toggle-{{ id }}" class="submenu-label">
      <i class="{{ icon }}"></i>{{ label }} <i class="fa-solid fa-caret-right"></i>
    </label>
    <ul class="submenu">
      {% for item in items %}
        <li><a href="{{ url_for(item.endpoint) }}"><i class="{{ item.icon }}"></i>{{ item.label }}</a></li>
      {% endfor %}
    </ul>
  </li>
{% endmacro %}
