Skip to content
Advertisement

How to add blank table cell if no match from for loop?

Table Generated

I would like for the table cell value to be in the right column based on the column value at the top. As seen, it currently does not align correctly. When I use the else condition, it duplicates the empty multiple times. Any help would be much appreciated.

Here is the current blade code

JavaScript

Here is the current Laravel Eloquent code:

JavaScript

Advertisement

Answer

how about this?

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement