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 @@ - +{{-- 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 -
{{ $customer['name'] ?? '' }}
{{ $customer['address'] ?? '' }}
{{ trim(($customer['postcode'] ?? '').' '.($customer['city'] ?? '')) }}
{{ $customer['country'] ?? '' }}@if (! empty($customer['vat_id']))
{{ __('invoice.customer_vat') }}: {{ $customer['vat_id'] }}@endif
@@ -66,8 +61,11 @@ @endif -

{{ $meta['title'] ?? __('invoice.title') }}

-

{{ $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'] ?? '' }}
@if (! empty($meta['salutation']))

{{ $meta['salutation'] }}

@@ -95,12 +93,7 @@ @endphp {{ $index + 1 }} - - {{ $line['description'] ?? '' }} - @foreach (($line['details'] ?? []) as $detail) -
{{ $detail }} - @endforeach - + {{ $line['description'] ?? '' }}@foreach (($line['details'] ?? []) as $detail)
{{ $detail }}@endforeach {{ InvoiceMath::quantity((int) $line['quantity_milli']) }}@if (! empty($line['unit'])) {{ $line['unit'] }}@endif {{ InvoiceMath::money((int) $line['unit_net_cents']) }} {{ InvoiceMath::money($net) }}