51 lines
1.1 KiB
PHP
51 lines
1.1 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>QR Codes Articoli</title>
|
|
<style>
|
|
@page {
|
|
margin: 10mm;
|
|
}
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
font-size: 6pt;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.qr-container {
|
|
display: inline-block;
|
|
width: 15mm;
|
|
text-align: center;
|
|
margin: 2mm;
|
|
vertical-align: top;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
.qr-code {
|
|
width: 10mm;
|
|
height: 10mm;
|
|
}
|
|
|
|
.qr-label {
|
|
font-size: 5pt;
|
|
margin-top: 1mm;
|
|
word-break: break-all;
|
|
line-height: 1.2;
|
|
max-width: 15mm;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
@foreach($articoliWithQr as $item)
|
|
<div class="qr-container">
|
|
<img src="data:image/png;base64,{{ $item['qr_base64'] }}" class="qr-code" alt="QR Code">
|
|
<div class="qr-label">{{ $item['articolo']->codice_articolo }}</div>
|
|
</div>
|
|
@endforeach
|
|
</body>
|
|
</html>
|