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
This commit is contained in:
Lukas Selch
2026-07-28 19:39:06 +02:00
committed by GitHub
parent d0391b9cfc
commit bf1c4d85cf
7 changed files with 7 additions and 7 deletions

View File

@@ -396,7 +396,7 @@
<tr>
<td class="text-center">
@if ($logo)
<img class="header-logo" style="height:50px" src="{{ \App\Services\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
<img class="header-logo" style="height:50px" src="{{ \App\Support\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
@else
@if ($estimate->customer->company)
<h2 class="header-logo"> {{ $estimate->customer->company->name }} </h2>

View File

@@ -417,7 +417,7 @@
<tr>
@if ($logo)
<td width="60%" class="header-section-left">
<img class="header-logo" style="height:50px" src="{{ \App\Services\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
<img class="header-logo" style="height:50px" src="{{ \App\Support\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
</td>
@else
<td width="60%" class="header-section-left" style="padding-top: 0px;">

View File

@@ -356,7 +356,7 @@
<tr>
<td width="50%" class="header-section-left">
@if ($logo)
<img class="header-logo" style="height:50px" src="{{ \App\Services\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
<img class="header-logo" style="height:50px" src="{{ \App\Support\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
@else
<h1 class="header-logo"> {{ $estimate->customer->company->name }} </h1>
@endif

View File

@@ -338,7 +338,7 @@
<tr>
<td class="text-center">
@if ($logo)
<img class="header-logo" style="height:50px" src="{{ \App\Services\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
<img class="header-logo" style="height:50px" src="{{ \App\Support\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
@else
@if ($invoice->customer->company)
<h2 class="header-logo"> {{ $invoice->customer->company->name }}</h2>

View File

@@ -388,7 +388,7 @@
<tr>
<td width="60%" class="header-section-left">
@if ($logo)
<img class="header-logo" style="height:50px" src="{{ \App\Services\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
<img class="header-logo" style="height:50px" src="{{ \App\Support\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
@elseif ($invoice->customer->company)
<h1 class="header-logo" style="padding-top: 0px;">
{{ $invoice->customer->company->name }}

View File

@@ -317,7 +317,7 @@
<tr>
<td width="50%" class="header-section-left">
@if ($logo)
<img class="header-logo" style="height:50px" src="{{ \App\Services\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
<img class="header-logo" style="height:50px" src="{{ \App\Support\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
@else
<h1 class="header-logo"> {{ $invoice->customer->company->name }} </h1>
@endif

View File

@@ -286,7 +286,7 @@
<tr>
@if ($logo)
<td width="50%" class="header-section-left">
<img style="height:50px" class="header-logo" src="{{ \App\Services\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
<img style="height:50px" class="header-logo" src="{{ \App\Support\Pdf\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
@else
@if ($payment->customer)
<td class="header-section-left" style="padding-top:0px;">