           </div>
                </div>
              {% endfor %}
            </div>
            <div class="mt-6 flex justify-end space-x-4">
              <a href="{% url 'course_detail' course.slug %}"
                 class="px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700">
                Cancel
              </a>
              <button type="submit"
                      class="bg-blue-600 hover:bg-blue-700 text