I have a simple function that goes through an array and calls my PHP endpoint like so:
jQuery.each( totalcollection, function( key, value ) { let card