Catch all logo

This commit is contained in:
David Bomba 2023-03-18 10:03:20 +11:00
parent 9ca10fadb3
commit 97f7f16f7c
2 changed files with 7 additions and 2 deletions

View File

@ -421,7 +421,7 @@ class PdfMock
'$country_2' => 'AF',
'$firstName' => 'Benedict',
'$user.name' => 'Derrick Monahan DDS Erna Wunsch',
'$font_name' => $this->settings?->primary_font ?: 'Roboto',
'$font_name' => isset($this->settings?->primary_font) ? $this->settings?->primary_font : 'Roboto',
'$auto_bill' => 'This invoice will automatically be billed to your credit card on file on the due date.',
'$payments' => '',
'$task.tax' => '',

View File

@ -12,11 +12,16 @@
<img src="{{ asset('images/invoiceninja-black-logo-2.png') }}"
class="border-b border-gray-100 h-18 pb-4" alt="Invoice Ninja logo">
</div>
@else
@elseif($company)
<div>
<img src="{{ $company->present()->logo() }}"
class="mx-auto border-b border-gray-100 h-18 pb-4" alt="{{ $company->present()->name() }} logo">
</div>
@else
<div>
<img src="{{ asset('images/invoiceninja-black-logo-2.png') }}"
class="mx-auto border-b border-gray-100 h-18 pb-4" alt="Invoice Ninja logo">
</div>
@endif
<h1 class="text-center text-3xl mt-10">{{ $title }}</h1>