Well the problem here is that your javascript is not on the correct place I guess. Have you tried putting all the <script> tags just before the closing </body> tag? It should run by then!
In the console, it said the error below. Any ideas? I have been trying this like forever. lol sorry about the 300 lines of table rows.
Uncaught TypeError: $(...).DataTable is not a function
at HTMLDocument. (organizations:504)
at fire (jquery-1.12.4.js:3232)
at Object.fireWith [as resolveWith] (jquery-1.12.4.js:3362)
at Function.ready (jquery-1.12.4.js:3582)
at HTMLDocument.completed (jquery-1.12.4.js:3617)
I got it! It is a conflicts with my app.blade.php. I am still looking for the solution, but I know where the problem is. I probably loading jquery twice.
"no one uses jquery anymore". There are a few millions sites out there using jquery, and major things like bootstrap and wordpress still use it. Just because it's not as shiny as some of the newer things like vue, doesn't mean it's "bad" or you "shouldn't" use it. Can you be any more opinionated lol?