diff --git a/app/Http/Controllers/PalletController.php b/app/Http/Controllers/PalletController.php new file mode 100644 index 000000000..e4f82ec69 --- /dev/null +++ b/app/Http/Controllers/PalletController.php @@ -0,0 +1,99 @@ +output($qrCode, 100); + $qrBase64 = base64_encode($qrBinary); + + $html = ' + + + + + + + + + + +
+ QR + + ' . htmlspecialchars($palletNo) . ' +
+ + + '; + + $mpdf = new Mpdf([ + 'mode' => 'utf-8', + 'format' => [60, 14], + 'margin_left' => 0, + 'margin_right' => 0, + 'margin_top' => 0, + 'margin_bottom' => 0, + //'tempDir' => '/var/www/storage/mpdf-tmp', + ]); + + $mpdf->WriteHTML($html); + $mpdf->Output('qr-label.pdf', 'I'); + exit; + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + */ + public function show(string $id) + { + // + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, string $id) + { + // + } + + /** + * Remove the specified resource from storage. + */ + public function destroy(string $id) + { + // + } +}