30 lines
814 B
PHP
30 lines
814 B
PHP
<!doctype html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<title>Coupons</title>
|
|
<style>
|
|
.page-break {
|
|
page-break-after: always;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td width="100%" align="center">
|
|
@php
|
|
$total = count($coupons);
|
|
@endphp
|
|
@foreach($coupons as $k => $coupon)
|
|
<img src="{{ $coupon }}" border="0" style="display:block;width:165mm;"/>
|
|
<br>
|
|
@if (($k + 1) % 3 === 0 && $total > 3)
|
|
<div class="page-break"></div>
|
|
@endif
|
|
@endforeach
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|