Adding form elements to a dynamic created form

Adding form elements to a dynamic created form

All,


I'm creating a statistics website for our football team in Laravel (PHP), bootstrap, jQuery ..
All is going fine, but I'm struggeling with the following idea ...

I have a form, that is being created dynamically. From the start, each player know in the database is shown in the form. This form represents who played the game at what position, how many minutes, ect ...
At the end of every player line, there is a button.
This button needs te be clicked in order to add an action. Yellow card, red card, goal, missed penalty, ...

I know, on Google and this forum, there is lots of information about adding elemtens to your form by clicking a button. But in my case there are multiple buttons to add or remove elements and there is a multidimensional array as well.
I have created a Bootply to get started with.
Can anyone help me out ?