From bf1c4d85cfb29fc84a0acda3d70305a768c9e6a5 Mon Sep 17 00:00:00 2001 From: Lukas Selch <122468280+da-luggas@users.noreply.github.com> Date: Tue, 28 Jul 2026 19:39:06 +0200 Subject: [PATCH] fix: update ImageUtils namespace in PDF blade templates (#695) The ImageUtils class was moved from App\Services\Pdf to App\Support\Pdf but the blade templates were not updated to reflect this change. This caused 'Class App\Services\Pdf\ImageUtils not found' errors when generating PDFs for invoices, estimates, and payments. Updated namespace in 7 blade template files: - invoice1.blade.php - invoice2.blade.php - invoice3.blade.php - estimate1.blade.php - estimate2.blade.php - estimate3.blade.php - payment.blade.php --- resources/views/app/pdf/estimate/estimate1.blade.php | 2 +- resources/views/app/pdf/estimate/estimate2.blade.php | 2 +- resources/views/app/pdf/estimate/estimate3.blade.php | 2 +- resources/views/app/pdf/invoice/invoice1.blade.php | 2 +- resources/views/app/pdf/invoice/invoice2.blade.php | 2 +- resources/views/app/pdf/invoice/invoice3.blade.php | 2 +- resources/views/app/pdf/payment/payment.blade.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/resources/views/app/pdf/estimate/estimate1.blade.php b/resources/views/app/pdf/estimate/estimate1.blade.php index 6bb507cc..3ad2a7cb 100644 --- a/resources/views/app/pdf/estimate/estimate1.blade.php +++ b/resources/views/app/pdf/estimate/estimate1.blade.php @@ -396,7 +396,7 @@ @if ($logo) - + @else @if ($estimate->customer->company) diff --git a/resources/views/app/pdf/estimate/estimate2.blade.php b/resources/views/app/pdf/estimate/estimate2.blade.php index 30d3c3e5..1dc3b203 100644 --- a/resources/views/app/pdf/estimate/estimate2.blade.php +++ b/resources/views/app/pdf/estimate/estimate2.blade.php @@ -417,7 +417,7 @@ @if ($logo) - + @else diff --git a/resources/views/app/pdf/estimate/estimate3.blade.php b/resources/views/app/pdf/estimate/estimate3.blade.php index ef9c34a3..7a81eca8 100644 --- a/resources/views/app/pdf/estimate/estimate3.blade.php +++ b/resources/views/app/pdf/estimate/estimate3.blade.php @@ -356,7 +356,7 @@ @if ($logo) - + @else

{{ $estimate->customer->company->name }}

@endif diff --git a/resources/views/app/pdf/invoice/invoice1.blade.php b/resources/views/app/pdf/invoice/invoice1.blade.php index 8ec862e1..803f6aa1 100644 --- a/resources/views/app/pdf/invoice/invoice1.blade.php +++ b/resources/views/app/pdf/invoice/invoice1.blade.php @@ -338,7 +338,7 @@ @if ($logo) - + @else @if ($invoice->customer->company) diff --git a/resources/views/app/pdf/invoice/invoice2.blade.php b/resources/views/app/pdf/invoice/invoice2.blade.php index e7dd2818..3d4c467f 100644 --- a/resources/views/app/pdf/invoice/invoice2.blade.php +++ b/resources/views/app/pdf/invoice/invoice2.blade.php @@ -388,7 +388,7 @@ @if ($logo) - + @elseif ($invoice->customer->company)

{{ $invoice->customer->company->name }} diff --git a/resources/views/app/pdf/invoice/invoice3.blade.php b/resources/views/app/pdf/invoice/invoice3.blade.php index 24c338f2..059fff35 100644 --- a/resources/views/app/pdf/invoice/invoice3.blade.php +++ b/resources/views/app/pdf/invoice/invoice3.blade.php @@ -317,7 +317,7 @@ @if ($logo) - + @else

{{ $invoice->customer->company->name }}

@endif diff --git a/resources/views/app/pdf/payment/payment.blade.php b/resources/views/app/pdf/payment/payment.blade.php index 909631a4..1155d00b 100644 --- a/resources/views/app/pdf/payment/payment.blade.php +++ b/resources/views/app/pdf/payment/payment.blade.php @@ -286,7 +286,7 @@ @if ($logo) - + @else @if ($payment->customer)