Dynamics inside hairpins not on beat position

How does one do the following sort of thing? I don’t know how to fiddle the dynamics to not sit on the staff objects.

Use the caret. See Tip: Add dynamics in the middle of tied notes – Dorico