Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @php $i = 0; @endphp
- @foreach($orders as $order)
- @if($i%2 == 0)
- {{-- if the result of the modulo operation is 0, open new row --}}
- <div class="order-invoice-row">
- @endif
- <div class="order-invoice-single-print">
- </div><!--order-invoice-single-print-->
- @if($i%2 == 1)
- </div><!--end of order-invoice-row-->
- @endif
- @php $i++; @endphp
- @endforeach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement