fix logo rendering in pdf output for invoices

This commit is contained in:
jacobi petrucciani
2024-07-31 14:22:48 -04:00
parent 0c0de64549
commit f10154539e
3 changed files with 3 additions and 3 deletions

View File

@@ -318,7 +318,7 @@
<tr>
<td width="50%" class="header-section-left">
@if ($logo)
<img class="header-logo" style="height: 50px;" src="{{ $logo }}" alt="Company Logo">
<img class="header-logo" style="height: 50px;" src="{{ "data:".mime_content_type($logo).";base64,".base64_encode(file_get_contents($logo)) }}" alt="Company Logo">
@else
<h1 class="header-logo"> {{ $invoice->customer->company->name }} </h1>
@endif