feat: add custom signature image and signer details support to invoices and settings

This commit is contained in:
I-Fun
2026-04-05 12:03:11 +07:00
parent 64092d3abc
commit 12d44cbecc
15 changed files with 510 additions and 196 deletions

View File

@@ -361,9 +361,30 @@
</div>
@endif
@if($invoice->notes)
<div class="notes">{{ $invoice->notes }}</div>
@endif
<div style="margin-top: 40px;">
@if($invoice->notes)
<div class="notes" style="width: 50%; float: left; margin-top: 10px;">{{ $invoice->notes }}</div>
@endif
@if($invoice->signature_image && file_exists(storage_path('app/public/' . $invoice->signature_image)))
<div style="width: 200px; float: right; text-align: center;">
<div style="font-size: 11px; color: #374151; margin-bottom: 12px;">
Jakarta, {{ $invoice->issue_date->format('d F Y') }}
</div>
<img src="{{ storage_path('app/public/' . $invoice->signature_image) }}" style="max-height: 80px; max-width: 180px; object-fit: contain; margin-bottom: 8px;">
<div style="font-size: 12px; font-weight: 800; color: #111827; text-transform: uppercase;">
{{ $invoiceSettings->signer_name ?: ($invoiceSettings->header_name ?: 'Signature') }}
</div>
@if($invoiceSettings->signer_title || $invoiceSettings->header_title)
<div style="font-size: 10px; color: #6B7280; text-transform: uppercase; margin-top: 3px;">
{{ $invoiceSettings->signer_title ?: $invoiceSettings->header_title }}
</div>
@endif
</div>
@endif
<div style="clear: both;"></div>
</div>
<div class="footer">Thank you for the collaboration!</div>