1
@foreach ($respostas as $resposta)
@if($reclamacao->id == $resposta->reclamacao_id)
<td>{{$resposta->resposta}}</td>
{{$i++}}
@endif
@endforeach
When I run this code snippet, the increment values of the variable $i are displayed in the view, and I’m only using it for control. Does anyone know how to stop displaying these values?
I recommend reading https://laravel.com/docs/8.x/blade#the-loop-variable
– Marcos Xavier