Tuesday, March 21, 2017

Split table in two columns in Laravel blade

I'm struggling to split the table into two columns in Laravel blade. For example if I have 17 rows, I want to display 9 of them in first column, and the rest in the second. This is my code:

@foreach($idAndProducts as $id)
<tr>
<td width="15px">
<input type="checkbox" id="products" name="products[]" value="">
<input type="hidden" name="campaignID[]" value=""></td>
<td width="480px"><label for="products"></label></td>
</tr>
@endforeach

Is there a way to do this within a Blade or using jQuery?



via harunB10

Advertisement