        </p>
                    </div>
                    <div class="w-full sm:w-auto flex justify-center">
                        <nav class="inline-flex -space-x-px rounded-md shadow-sm"
                             aria-label="Pagination">
                            {% if page_obj.has_previous %}
                                <a href="?page=1"
                                   class="relative inline-flex items-center rounded-l-md px-2 py-2 text-gray-400 ring-1 ring-inset ring-gray-300 hover:bg-gr