Added print 2 blade file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
This commit is contained in:
100
resources/views/production-orders/print2.blade.php
Normal file
100
resources/views/production-orders/print2.blade.php
Normal file
@@ -0,0 +1,100 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
@page { margin: 0; }
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 6pt;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.sticker {
|
||||
width: 170pt;
|
||||
height: 24pt; /* clearly less than 28.35pt page */
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
|
||||
td { padding: 0; margin: 0; vertical-align: top; line-height: 1; }
|
||||
|
||||
.qr {
|
||||
display: block;
|
||||
width: 24pt;
|
||||
height: 24pt;
|
||||
margin-top: 2pt;
|
||||
margin-left: 4pt;
|
||||
}
|
||||
|
||||
.text {
|
||||
position: relative;
|
||||
padding-left: 5pt;
|
||||
}
|
||||
|
||||
.serial {
|
||||
font-size: 8pt;
|
||||
font-weight: bold;
|
||||
position: relative;
|
||||
top: 3pt;
|
||||
right:5pt;
|
||||
}
|
||||
|
||||
.po {
|
||||
font-size: 8pt;
|
||||
font-weight: bold;
|
||||
position: absolute;
|
||||
right: 5pt;
|
||||
top: 3pt;
|
||||
}
|
||||
|
||||
.po-long {
|
||||
font-size: 8pt;
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
position: absolute;
|
||||
right: 5pt;
|
||||
top: 2pt;
|
||||
width: 69pt;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-family: "Arial Narrow";
|
||||
font-size: 7pt;
|
||||
font-weight: bold;
|
||||
letter-spacing: -0.3px;
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
top: 9pt;
|
||||
margin-left: -5pt;
|
||||
width: 125pt;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@foreach($stickers as $sticker)
|
||||
<div class="sticker">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:28pt;">
|
||||
<img class="qr" src="{{ $sticker['qr'] }}">
|
||||
</td>
|
||||
<td class="text">
|
||||
<div class="serial">{{ $sticker['serial'] }}</div>
|
||||
<div class="{{ strlen($sticker['serial']) > 14 ? 'po-long' : 'po' }}">
|
||||
{{ $sticker['production_order'] }}
|
||||
</div>
|
||||
<div class="desc">{{ $sticker['description'] }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user