barcode.blade.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>Print Preview</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css">
  9. <style>
  10. @media print {
  11. @page { margin: 0; }
  12. body { margin: 1.6cm; }
  13. }
  14. body {
  15. font-family: Arial, Helvetica, Gulim, sans-serif;
  16. font-size: 12px;
  17. line-height: 1.42857143;
  18. color: #000000;
  19. background-color: #ffffff;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div style="padding: 5px; margin-top: 10px;">
  25. @forelse($response['Page'] ?? [] as $item)
  26. <div style="padding-bottom: 0;">
  27. <img src="data:image/png;base64,{{ DNS1D::getBarcodePNG($item['C1'], 'C128', 3,33) }}" width="147" height="50" alt="barcode" />
  28. <div>{{ $item['C1'] }}</div>
  29. </div>
  30. @empty
  31. @endforelse
  32. </div>
  33. </body>
  34. </html>