diff --git a/04_Laravel/app/Services/PdfService.php b/04_Laravel/app/Services/PdfService.php index 314f214..f37157f 100644 --- a/04_Laravel/app/Services/PdfService.php +++ b/04_Laravel/app/Services/PdfService.php @@ -33,7 +33,7 @@ class PdfService $html = view('pdfs.awb', $data)->render(); - return $this->generatePdf($html, 'A4', 'portrait'); + return $this->generatePdf($html, 'A4', 'landscape'); } /** diff --git a/04_Laravel/resources/views/pdfs/awb.blade.php b/04_Laravel/resources/views/pdfs/awb.blade.php index 2e631fd..a51d01f 100644 --- a/04_Laravel/resources/views/pdfs/awb.blade.php +++ b/04_Laravel/resources/views/pdfs/awb.blade.php @@ -13,11 +13,14 @@ } /* ⚠️ Dompdf از box-sizing: border-box پشتیبانی نمی‌کند — width باید 100% ناحیه قابل چاپ باشد و حاشیه‌ها با @page داده شوند؛ - width: 210mm + padding یعنی 230mm واقعی و بیرون‌زدگی از سمت راست. */ - @page { margin: 8mm 10mm; } - .page { - width: 100%; - } + width: 210mm + padding یعنی 230mm واقعی و بیرون‌زدگی از سمت راست. + موقتی یه تغییری برای تست میدهیم. */ + @page { + margin-top: 10mm; + margin-bottom: 10mm; + margin-left: 15mm; + margin-right: 15mm; + } /* ════════ Brand Colors ════════ */ /* Navy: #1a1a2e | Orange accent: #f59e0b | Gray bg: #f3f4f6 */ @@ -108,9 +111,10 @@ margin-bottom: 6px; } .grid-table > tbody > tr > td { - width: 50%; + width: 25%; /* ✅ ۴ ستونه در عرضی */ vertical-align: top; border: 1.5px solid #1a1a2e; + border-right: 0.5px solid #1a1a2e; padding: 0; } .grid-table > tbody > tr > td.left { @@ -439,22 +443,28 @@ @endif - -
-
⚠ Terms & Conditions
- Door-to-door service applies only to general cargo without special approvals. Consignee is responsible for import rules at destination. All shipments are subject to customs approval at origin and destination. The courier company cannot guarantee clearance. -
- - - + +
- -
- Shipper Name & Signature -
+
+
+
⚠ Terms & Conditions
+ Door-to-door service applies only to general cargo without special approvals. Consignee is responsible for import rules at destination. All shipments are subject to customs approval at origin and destination. +
- Date -
...../...../..........
+
+ + + + + +
+ Shipper Signature +
+
+ Date +
...../...../..........
+
diff --git a/sample pdf/INVOICE-IFN-2026-77973.pdf b/sample pdf/INVOICE-IFN-2026-77973.pdf new file mode 100644 index 0000000..0a26f53 Binary files /dev/null and b/sample pdf/INVOICE-IFN-2026-77973.pdf differ diff --git a/sample pdf/LABEL-IFN-2026-77973.pdf b/sample pdf/LABEL-IFN-2026-77973.pdf new file mode 100644 index 0000000..c4e70e2 Binary files /dev/null and b/sample pdf/LABEL-IFN-2026-77973.pdf differ diff --git a/sample pdf/فاکتور و لیبل مشتری.pdf b/sample pdf/فاکتور و لیبل مشتری.pdf new file mode 100644 index 0000000..84d7707 Binary files /dev/null and b/sample pdf/فاکتور و لیبل مشتری.pdf differ