diff --git a/resources/views/pdf/invoice.blade.php b/resources/views/pdf/invoice.blade.php index 2cc599e..b6bca60 100644 --- a/resources/views/pdf/invoice.blade.php +++ b/resources/views/pdf/invoice.blade.php @@ -32,15 +32,10 @@
|
- {{ $customer['name'] ?? '' }} - {{ $customer['address'] ?? '' }} - {{ trim(($customer['postcode'] ?? '').' '.($customer['city'] ?? '')) }} - {{ $customer['country'] ?? '' }} - @if (! empty($customer['vat_id'])) - {{ __('invoice.customer_vat') }}: {{ $customer['vat_id'] }} - @endif - |
+{{-- No leading whitespace inside these cells. TCPDF prints it: every indented
+ line came out indented, and only the last one — which had none — sat flush
+ against the margin. --}}
+ {{ $customer['name'] ?? '' }} {{ $customer['address'] ?? '' }} {{ trim(($customer['postcode'] ?? '').' '.($customer['city'] ?? '')) }} {{ $customer['country'] ?? '' }}@if (! empty($customer['vat_id'])) {{ __('invoice.customer_vat') }}: {{ $customer['vat_id'] }}@endif |
{{ $meta['number'] ?? '' }}
+{{-- One block, not a heading with a paragraph beneath it: TCPDF gives an h1 a + margin of its own and the two drifted a centimetre apart. --}} +| {{ $meta['title'] ?? __('invoice.title') }} {{ $meta['number'] ?? '' }} |
{{ $meta['salutation'] }}
@@ -95,12 +93,7 @@ @endphp