Note that since Bootstrap 5 the correct attribute is
data-bs-toggle
and no longer data-toggle. This goes for all data- attributes.