How to get array values using foreach in laravel



PHP Snippet 1:

@foreach ($group_by_precedence as $value)                   
                   
                        <thead>
                            <tr>
                              
                                <th colspan="8">
                                    <a class="collapse-button collapsed" data-toggle="collapse" href="#collapse_{{ $value }}" aria-expanded="true" aria-controls="collapse_{{ $value }}" onclick = "loadDealsFor('{{ $value }}', 'precedence');"  style="width: 100%;display: block;margin: -10px;padding: 10px;">
                                        <i class="zmdi zmdi-plus"></i> <i class="zmdi zmdi-minus"></i>exists
                                    </a>
                                </th>
                                   
                            </tr>
                        </thead>
                        <tbody id="collapse_{{ $value }}" class="collapse" aria-expanded="false" data-loading="no">
                            <tr>
                                <td colspan="8" id="collapse_{{ $value }}_loader" class="force-white"></td>
                            </tr>   
                        </tbody>
                    @endforeach