私のウェブサイトのデザインを変更しようとしていますが、好きなように動作しません。3番目の要素ごとに広告を配置する - Laravel Foreach
ウェブサイトの3番目の要素の後に全角divを挿入したいとします。ここで
は、それが今どのように見えるか、私のような絵です:
そして、私はそれになりたい方法のthats:私のコードザッツ
:
@foreach($usergroups as $group)
<div class="col-xs-12 col-sm-6 col-md-4">
<div class="jumbotron" id="jumbo">
// Content of the black boxes
</div>
@if($counter % 3 == 0)
<div class="col-md-12">
// content of the red boxed (Ad's by google)
</div>
@endif
</div>
<?php $counter-- ?>
@endforeach