Need help to represent array in view file. My code:

```
@foreach($standings as $team_name => $points)
      <tr>
        <th scope="row">#</th>
           <td>{{$team_name}}</td>
           <td>{{$points}}</td>
           <td></td>
           <td></td>
           <td></td>
           <td></td>
     </tr>
@endforeach

```

error msg:
*htmlspecialchars() expects parameter 1 to be string, array given (View: C:\laragon\www\fkbabrungas\resources\views\admin\leagues\standings.blade.php)*

array to print in view:

```
array:2 [▼
  "secondTeam" => & array:6 [▼
    "points" => 3
    "scoredGoals" => 3
    "goalsConceded" => 2
    "wins" => 1
    "loses" => 0
    "draws" => 0
  ]
  "firstTeam" => & array:6 [▶]
]

```