feat: add custom signature image and signer details support to invoices and settings
This commit is contained in:
@@ -147,9 +147,29 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($invoice->notes)
|
||||
<div class="mt-4 text-sm text-gray-500 italic">{{ $invoice->notes }}</div>
|
||||
@endif
|
||||
<div class="flex flex-col sm:flex-row justify-between items-start mt-10 gap-6">
|
||||
<div class="flex-1 text-left">
|
||||
@if($invoice->notes)
|
||||
<div class="text-sm text-gray-500 italic">{{ $invoice->notes }}</div>
|
||||
@endif
|
||||
</div>
|
||||
@if($invoice->signature_image)
|
||||
<div class="shrink-0 text-center w-full sm:w-auto">
|
||||
<div class="text-sm text-gray-500 mb-3">
|
||||
Jakarta, {{ $invoice->issue_date->format('d F Y') }}
|
||||
</div>
|
||||
<img src="{{ '/storage/' . $invoice->signature_image }}" alt="Signature" class="h-20 object-contain mb-3 mx-auto">
|
||||
<div class="text-sm font-extrabold text-gray-800 uppercase tracking-wide">
|
||||
{{ $invoiceSettings->signer_name ?: ($invoiceSettings->header_name ?: 'Signature') }}
|
||||
</div>
|
||||
@if($invoiceSettings->signer_title || $invoiceSettings->header_title)
|
||||
<div class="text-xs text-gray-400 uppercase mt-0.5 tracking-wider">
|
||||
{{ $invoiceSettings->signer_title ?: $invoiceSettings->header_title }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user