mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
fix logo rendering in pdf output for invoices
This commit is contained in:
@@ -339,7 +339,7 @@
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
@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
|
||||
@if ($invoice->customer->company)
|
||||
<h2 class="header-logo"> {{ $invoice->customer->company->name }}</h2>
|
||||
|
||||
@@ -389,7 +389,7 @@
|
||||
<tr>
|
||||
<td width="60%" class="header-section-left">
|
||||
@if ($logo)
|
||||
<img class="header-logo" src="{{ $logo }}" alt="Company Logo" style="height: 50px;">
|
||||
<img class="header-logo" src="{{ "data:".mime_content_type($logo).";base64,".base64_encode(file_get_contents($logo)) }}" alt="Company Logo" style="height: 50px;">
|
||||
@elseif ($invoice->customer->company)
|
||||
<h1 class="header-logo" style="padding-top: 0px;">
|
||||
{{ $invoice->customer->company->name }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user