I have the below arrays and I want to get it in laravel blade as HTML table.
array:2 [▼
0 => array:6 [▼
"room" => "401"
"landmark" => "Main Building"
"capacity" => 60
"faculty" => array:4 [▼
0 => "DMSM"
1 => "DMSM"
2 => ""
3 => "DMSM"
]
"department" => array:4 [▼
0 => "BSH"
1 => "BSH"
2 => ""
3 => "BSH"
]
"course" => array:4 [▼
0 => "PHY 101"
1 => "PHY 101"
2 => "Free"
3 => "PHY 101"
]
]
1 => array:6 [▼
"room" => "504"
"landmark" => "Main Building"
"capacity" => 50
"faculty" => array:4 [▼
0 => ""
1 => ""
2 => "DMSM"
3 => ""
]
"department" => array:4 [▼
0 => ""
1 => ""
2 => "BSH"
3 => ""
]
"course" => array:4 [▼
0 => "Free"
1 => "Free"
2 => "PHY 101"
3 => "Free"
]
]
]
I'm getting the above response from multiple tables now I need to loop in view, so How to loop the above arrays in view??
How can I display the above array values in the below format?