        </div>
                    </a>
                {% endfor %}
            </div>
            {% if page_obj.paginator.num_pages > 1 %}
                <div class="flex justify-center mt-8">
                    <nav class="inline-flex rounded-md shadow-sm -space-x-px"
                         aria-label="Pagination">
                        {% if page_obj.has_previous %}
                            <a href="?page={{ page_obj.previous_page_number }}"
                               class="relative inlin