我想用foreach创建一个表,同时又要创建一个表...我想自动创建一组新的表
@if(count($collection) > 0)
<div class="arrg arrg_in" style="cursor: pointer;" width="100%">
<table class="arrg_tbarrg" border="0" cellpadding="2" cellspacing="2" width="100%">
<tbody>
@foreach($collection as $collectios)
@foreach($collectios->tansactions as $transaction)
@if($transaction)
<tr style="background-color:red">
<td> hello</td> </tr> @endif
@endforeach
@foreach($collectios->ptansactions as $transactio)
@if($transactio)
<tr style="background-color:red">
<td> hello people</td>
</tr>
@endif
@endforeach
</tbody>
</table>
@endforeach
@endif
我希望出现一组全新的完整表格...
我将在哪里使用while语句