PHP/ Laravel Blade Multidimensional Array

I have the below arrays and I want to get it in laravel blade as HTML table

        $chest = json_decode(Session::get('chest'),TRUE);
array:2 [▼
  "chest" => array:2 [▼
    "Chest Press" => array:1 [▼
      0 => "1"
    ]
    "Flys" => array:2 [▼
      0 => "3"
      1 => "4"
    ]
  ]
  "hints" => array:2 [▼
    "Chest Press" => array:1 [▼
      0 => "test1"
    ]
    "Flys" => array:1 [▼
      0 => "test2"
    ]
  ]
]

I try the below but I dont get right HTML table, its correct the first two columns but the third columnt is not, any ideas how to print it on HTML table

  <table class="table table-striped table-hover table-reflow">
            <thead>
                <tr>
                  <th>Exercises</th>
                  <th>Days</th>
                  <th>Hints</th>


                </tr>
            </thead>
        <tbody>

        @foreach($chests['chest'] as $chest => $exc)
            <tr>
                <td>{{$chest}}</td>
                @foreach($exc as $key => $value)
                    <td>
                         <strong>{{$value}},</strong>
                    </td>
                @endforeach

        @endforeach

        @foreach($chests['hints'] as $hint => $hin)


                @foreach($hin as $key => $value)
                    <td>
                         <strong>{{$value}}</strong>
                    </td>

                @endforeach

              </tr>
        @endforeach

          </tbody> 

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.