Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
72 lines
1.1 KiB
PHP
72 lines
1.1 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
@page {
|
|
margin: 0;
|
|
}
|
|
|
|
body{
|
|
margin:0;
|
|
padding:0;
|
|
}
|
|
|
|
.sticker{
|
|
width:40mm;
|
|
height:40mm;
|
|
overflow:hidden;
|
|
position:relative;
|
|
box-sizing:border-box;
|
|
}
|
|
|
|
.qr{
|
|
width:28mm;
|
|
height:28mm;
|
|
position:absolute;
|
|
top:-1mm;
|
|
left:5.8mm;
|
|
}
|
|
|
|
.serial{
|
|
position:absolute;
|
|
top:26mm; /* 3 + 22 + 1mm spacing */
|
|
width:100%;
|
|
text-align:center;
|
|
font-family:Arial, sans-serif;
|
|
font-weight:bold;
|
|
font-size:2mm;
|
|
}
|
|
.desc{
|
|
position:absolute;
|
|
top:30.6mm;
|
|
width:100%;
|
|
text-align:center;
|
|
font-family:Arial, sans-serif;
|
|
font-weight:bold;
|
|
font-size:2mm;
|
|
white-space:nowrap;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
@foreach($stickers as $sticker)
|
|
<div class="sticker">
|
|
|
|
<img class="qr" src="{{ $sticker['qr'] }}">
|
|
|
|
<div class="serial">
|
|
{{ $sticker['serial'] }}
|
|
</div>
|
|
|
|
<div class="desc">
|
|
{{ $sticker['description'] }}
|
|
</div>
|
|
|
|
</div>
|
|
@endforeach
|
|
|
|
</body>
|
|
</html>
|