 I have an API resulted as in picture. And I want to show the result in Laravel Blade. So I use this code:
I have an API resulted as in picture. And I want to show the result in Laravel Blade. So I use this code:
    @if(isset($data))
        @foreach ($data as $had)
            <tr>
            <th scope="row">#</td>
            dd({{ $had['data']['NoHdt'] }});
            <td>{{ $had['data']['NoHdt'] }}</td>
            <td>{{ $had['data']['Kitab'] }}</td>
            <td>{{ $had['data']['Isi_Indonesia'] }}</td>
            </tr>
        @endforeach
    @endif
  </tbody>
But it always resulted
Undefined index: data
How to make it right?
 
     
     
    