Why do you need them to be at the end of the chapters? You can split each note into its own file and keep them at end of the book. I've seen this in a number of books. To do this:
- Open the file that contains the notes.
- Right click > Split at multiple locations. You need to enter regex that splits between notes.
If you need help with the regex, you can post a sample of an endnote here.