Problem displaying dynamic data in an array in Laravel blade view using Javascript

Working on a Laravel application whereby I have some data in an array. The data is a collection of associative arrays whereby each array has an identity number and a collection of policy codes in it. Am fetching the data and displaying to the blade. In the view I have partitioned in 2 columns (using bootstrap grid system). On the left column (col-md-4) am looping through the variable and displaying the identity number which works fine. On the right column I have a table whereby am supposed to display the respective policy code depending on the state of identity_no. I