I don\'t know what is wrong, but I can\'t render the modal correctly when I am displaying data in blade from a foreach loop, instead, if I only display html, the modal works