mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 11:14:06 +00:00
Improved logo display in Invoice/Estimate PDFs
This commit is contained in:
@@ -398,7 +398,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="{{ \App\Space\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
|
||||
@else
|
||||
@if ($estimate->customer->company)
|
||||
<h2 class="header-logo"> {{ $estimate->customer->company->name }} </h2>
|
||||
|
||||
@@ -420,7 +420,7 @@
|
||||
<tr>
|
||||
@if ($logo)
|
||||
<td width="60%" class="header-section-left">
|
||||
<img class="header-logo" style="height: 50px;" src="{{ $logo }}" alt="Company Logo">
|
||||
<img class="header-logo" style="height:50px" src="{{ \App\Space\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
|
||||
</td>
|
||||
@else
|
||||
<td width="60%" class="header-section-left" style="padding-top: 0px;">
|
||||
|
||||
@@ -358,7 +358,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="{{ \App\Space\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
|
||||
@else
|
||||
<h1 class="header-logo"> {{ $estimate->customer->company->name }} </h1>
|
||||
@endif
|
||||
|
||||
@@ -328,9 +328,6 @@
|
||||
|
||||
</style>
|
||||
|
||||
@if (App::isLocale('th'))
|
||||
@include('app.pdf.locale.th')
|
||||
@endif
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -339,7 +336,7 @@
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
@if ($logo)
|
||||
<img class="header-logo" style="height:50px" src="{{ "data:".mime_content_type($logo).";base64,".base64_encode(file_get_contents($logo)) }}" alt="Company Logo">
|
||||
<img class="header-logo" style="height:50px" src="{{ \App\Space\ImageUtils::toBase64Src($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="{{ "data:".mime_content_type($logo).";base64,".base64_encode(file_get_contents($logo)) }}" alt="Company Logo" style="height: 50px;">
|
||||
<img class="header-logo" style="height:50px" src="{{ \App\Space\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
|
||||
@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="{{ "data:".mime_content_type($logo).";base64,".base64_encode(file_get_contents($logo)) }}" alt="Company Logo">
|
||||
<img class="header-logo" style="height:50px" src="{{ \App\Space\ImageUtils::toBase64Src($logo) }}" alt="Company Logo">
|
||||
@else
|
||||
<h1 class="header-logo"> {{ $invoice->customer->company->name }} </h1>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user