MR
Просто так нельзя
Size: a a a
MR
KN
KN
KN
Ц
@section('content')
<table>
@foreach ($products as $index => $product)
<tr>
<th>
<h2>{{ $product->name }}</h2>
</th>
@if($loop->even)
{{ $index }} is even
</tr>
@endif
@endforeach
</table>
@endsection
{{ $index }} is even
Ц
@section('content')
<table>
@foreach ($products as $index => $product)
<tr>
<th>
<h2>{{ $product->name }}</h2>
</th>
@if($loop->even)
{{ $index }} is even
</tr>
@endif
@endforeach
</table>
@endsection
{{ $index }} is even
Ц
@section('content')
<table>
@foreach ($products as $index => $product)
<tr>
<th>
<h2>{{ $product->name }}</h2>
</th>
@if($loop->even)
{{ $index }} is even
</tr>
@endif
@endforeach
</table>
@endsection
{{ $index }} is even
Ц
Ц
M
Ц
M
Ц
M
Ц
Ц
M
Ц
M
Ц