diff --git a/04_Laravel/resources/views/pdfs/invoice.blade.php b/04_Laravel/resources/views/pdfs/invoice.blade.php index f5ff444..49e0b59 100644 --- a/04_Laravel/resources/views/pdfs/invoice.blade.php +++ b/04_Laravel/resources/views/pdfs/invoice.blade.php @@ -3,360 +3,416 @@
- -
-

INVOICE

-
- DATE: {{ $shipment->created_at?->format('m/d/Y') }} - INVOICE NO: {{ $shipment->awb_no }} -
+ + + + + + + + +
+ + +
INVOICE
+
+
INV: {{ $shipment->awb_no }}
+
Date: {{ $shipment->created_at?->format('m/d/Y') }}
+
+ + +
+ From: {{ strtoupper($shipment->fromCountry?->name ?? '—') }} ({{ $shipment->fromCountry?->iso_code }}) + → + To: {{ strtoupper($shipment->toCountry?->name ?? '—') }} ({{ $shipment->toCountry?->iso_code }})
- -
-
-
SHIPPER
-
SHIPPER:{{ $shipper['city'] }}, {{ $shipment->fromCountry?->name }} ({{ $shipment->fromCountry?->iso_code }})
-
COMPANY NAME:{{ $shipper['company'] ?: '—' }}
-
CONTACT PERSON:{{ $shipper['name'] }}
-
ADDRESS:{{ $shipper['address'] }}
-
PHONE:{{ $shipper['phone'] }}
-
EMAIL:{{ $shipper['email'] ?: '—' }}
-
+ + + + + + +
+
SHIPPER
+ + + + + @if($shipper['city']) + + @endif + @if($shipper['zip']) + + @endif + + @if($shipper['email']) + + @endif +
Company{{ $shipper['company'] ?: $shipper['name'] }}
Contact Person{{ $shipper['name'] ?: '—' }}
Address{{ $shipper['address'] ?: '—' }}
City{{ $shipper['city'] }}
Zip Code{{ $shipper['zip'] }}
Phone{{ $shipper['phone'] ?: '—' }}
Email{{ $shipper['email'] }}
+
+
CONSIGNEE
+ + + + + @if($receiver['city']) + + @endif + @if($receiver['zip']) + + @endif + + @if($receiver['email']) + + @endif +
Company{{ $receiver['company'] ?: $receiver['name'] }}
Contact Person{{ $receiver['name'] ?: '—' }}
Address{{ $receiver['address'] ?: '—' }}
City{{ $receiver['city'] }}
Zip Code{{ $receiver['zip'] }}
Phone{{ $receiver['phone'] ?: '—' }}
Email{{ $receiver['email'] }}
+
-
-
CONSIGNEE
-
CONSIGNEE:{{ $receiver['city'] }}, {{ $shipment->toCountry?->name }} ({{ $shipment->toCountry?->iso_code }})
-
COMPANY NAME:{{ $receiver['company'] ?: '—' }}
-
CONTACT PERSON:{{ $receiver['name'] }}
-
ADDRESS:{{ $receiver['address'] }}
-
Zip Code & City:{{ $receiver['zip'] }} {{ $receiver['city'] }}
-
PHONE:{{ $receiver['phone'] }}
-
EMAIL:{{ $receiver['email'] ?: '—' }}
-
-
- - -
-
Content
-
{{ $shipment->content_description ?: 'General Goods' }}
- - + +
+
SHIPMENT DETAILS
+
- - - - - - + + + + + + @forelse($items as $item) - + - - - - + + + + @empty - + @endforelse - - {{-- Fill empty rows to match reference (9 rows) --}} - @for($i = $items->count() + 1; $i <= 9; $i++) - - - - - - - - - @endfor - - - - + + +
NODESCRIPTIONH.S. CODEQUANTITYUNIT PRICETOTAL IN USDNoDescriptionH.S. CodeQtyUnit Price (USD)Total (USD)
{{ $item->row_number }}{{ $item->row_number }} {{ $item->description }}{{ $item->hs_code }}{{ $item->quantity }}{{ number_format($item->unit_price, 2) }}{{ number_format($item->total_usd, 2) }}{{ $item->hs_code ?: '—' }}{{ $item->quantity }}{{ number_format($item->unit_price, 2) }}{{ number_format($item->total_usd, 2) }}
No items
No items
{{ $i }} 
TOTAL INVOICE AMOUNT IN USD{{ number_format($invoice_total_usd, 2) }}
TOTAL INVOICE AMOUNT (USD):{{ number_format($invoice_total_usd, 2) }}
- -
-
-
Gross Weight
-
{{ $shipment->weight }} KG
-
-
-
Volumetric Weight
-
{{ $shipment->volumetric_weight }} KG
-
-
-
W * L * H (cm)
-
{{ $shipment->dimensions ?: '—' }}
-
-
+ + + + + + + +
+
Gross Weight
+
{{ number_format($shipment->weight ?? 0, 3) }} KG
+
+
Volumetric Weight
+
{{ number_format($shipment->volumetric_weight ?? 0, 3) }} KG
+
+
W × L × H (cm)
+
{{ $shipment->dimensions ?: '—' }}
+
- + + @if($shipment->reason_for_export)
-
REASON FOR EXPORT
-
- {{ strtoupper($shipment->reason_for_export ?: 'ITEM BEING SENT AS A SAMPLE, NOT FOR SALE') }} -
+
REASON FOR EXPORT
+
{{ $shipment->reason_for_export }}
+ @endif - +
- I HEREBY STATE THAT THE ABOVE INFORMATION IS TRUE AND CORRECT TO THE BEST OF MY KNOWLEDGE AND I, THE UNDERSIGNED, AM LIABLE FOR ANY CONSEQUENCES THAT MAY ARISE DUE TO NON-DISCLOSURE OF FACTS. -
-
- NAME - SIGNATURE -
-
-
- DATE -
...../...../..........
-
-
+
DECLARATION
+

I hereby certify that the information on this invoice is true and correct, and that the goods originated from the country shown above. This invoice is for customs purposes only.

- -
- @if($barcode_base64) - barcode - @endif -
- {{ $shipment->awb_no }} - {{ $shipment->weight }} KG - {{ $shipment->created_at?->format('m/d/Y') }} - {{ $shipment->fromCountry?->name }} → {{ $shipment->toCountry?->name }} -
-
+ + + + + +
+ Shipper Name & Signature +
+
+ Date +
...../...../..........
+
- + +
- + \ No newline at end of file diff --git a/04_Laravel/resources/views/pdfs/label.blade.php b/04_Laravel/resources/views/pdfs/label.blade.php index 3496e0f..4341db0 100644 --- a/04_Laravel/resources/views/pdfs/label.blade.php +++ b/04_Laravel/resources/views/pdfs/label.blade.php @@ -3,247 +3,191 @@
- -
-
-
IFNEx LOGISTICS
-
We Deliver Value
-
-
Date: {{ $shipment->created_at?->format('m/d/Y') }}
-
- -
- -
- @if($barcode_base64) - barcode - @endif -
AWB Number
-
{{ $shipment->awb_no }}
-
+ + + + + + + + +
+ @if($barcode_base64) + barcode + @endif +
{{ $shipment->awb_no }}
+
Reference Number
+
+ + + + + + + + + + + + + + + + + +
Weight{{ number_format($shipment->weight ?? 0, 3) }} KG
Origin + {{ strtoupper($shipment->fromCountry?->name ?? '—') }} + ({{ $origin_iso }}) +
Date{{ $shipment->created_at?->format('m/d/Y') }}
Destination + {{ strtoupper($shipment->toCountry?->name ?? '—') }} + ({{ $dest_iso }}) +
+
- -
- -
-
-
ORIGIN
-
{{ $shipment->fromCountry?->name ?? '—' }}
-
{{ $origin_iso }}
-
-
→
-
-
DESTINATION
-
{{ $shipment->toCountry?->name ?? '—' }}
-
{{ $dest_iso }}
-
-
+ + + + + + + +
+
Gross Weight
+
{{ number_format($shipment->weight ?? 0, 3) }} KG
+
+
Volumetric Weight
+
{{ number_format($shipment->volumetric_weight ?? 0, 3) }} KG
+
+
W × L × H (cm)
+
{{ $shipment->dimensions ?: '—' }}
+
- -
-
-
Gross Weight
-
{{ $shipment->weight }} kg
-
-
-
Volumetric
-
{{ $shipment->volumetric_weight }} kg
-
-
-
W*L*H
-
{{ $shipment->dimensions ?: '—' }} cm
-
-
- - -
- DEST ZIP - {{ $shipment->receiver_zip ?: '—' }} -
-
-
- - -
- + \ No newline at end of file diff --git a/sample pdf/INVOICE-IFN-2026-77973.pdf b/sample pdf/INVOICE-IFN-2026-77973.pdf deleted file mode 100644 index 0a26f53..0000000 Binary files a/sample pdf/INVOICE-IFN-2026-77973.pdf and /dev/null differ diff --git a/sample pdf/LABEL-IFN-2026-77973.pdf b/sample pdf/LABEL-IFN-2026-77973.pdf deleted file mode 100644 index c4e70e2..0000000 Binary files a/sample pdf/LABEL-IFN-2026-77973.pdf and /dev/null differ diff --git a/sample pdf/فاکتور و لیبل مشتری.pdf b/sample pdf/فاکتور و لیبل مشتری.pdf deleted file mode 100644 index 84d7707..0000000 Binary files a/sample pdf/فاکتور و لیبل مشتری.pdf and /dev/null differ