From 062ab6d8a18df9de2c187f7d9e749cefb99998e7 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 2 Jul 2025 17:07:32 +0530 Subject: [PATCH] Added pallet controller file --- app/Http/Controllers/PalletController.php | 99 +++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 app/Http/Controllers/PalletController.php 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) + { + // + } +}