{% if chats['chats'] %} {% for chat in chats['chats'] %}
  • {{ chat['title'] or 'Untitled Chat' }}

    ID: {{ chat['id'] }}
    Created {{ chat['created_at'].strftime('%Y-%m-%d %H:%M:%S') }}
  • {% endfor %} {# Pagination Controls #} {% if chats['pagination']['pages'] > 1 %}
    {% if chats['pagination']['page'] > 1 %} Previous {% endif %} {% if chats['pagination']['page'] < chats['pagination']['pages'] %} Next {% endif %}
    {% endif %} {% else %}
  • No chats found
  • {% endif %}