   <input type="hidden" name="group_id" value="{{ group.id }}" />
                              <button type="submit"
                                      class="text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300">
                                Leave Group
                              </button>
                            </form>
                          {% else %}
                            <form method="post">
                              {% csrf_token %}
                    