refactor: improve fetch request handling, update invoice PDF layout, and adjust docker-compose configuration
This commit is contained in:
@@ -303,8 +303,8 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="width:50%;">Description</td>
|
||||
<td class="td-center" style="width:10%;">Qty</td>
|
||||
<td class="td-right" style="width:20%;">Unit Price</td>
|
||||
<td class="td-center" style="width:10%;">Qty</td>
|
||||
<td class="td-right" style="width:20%;">Total</td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -318,8 +318,8 @@
|
||||
style="margin-left:6px; font-size:10px; background:#F3F4F6; color:#6B7280; padding:2px 8px; border-radius:10px; font-weight:600;">Non-Taxable</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="td-center">{{ $item->quantity }}</td>
|
||||
<td class="td-right">Rp {{ number_format($item->unit_price, 0, ',', '.') }}</td>
|
||||
<td class="td-center">{{ $item->quantity }}</td>
|
||||
<td class="td-right" style="font-weight:600;">Rp {{ number_format($item->total, 0, ',', '.') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@@ -361,17 +361,18 @@
|
||||
</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->notes)
|
||||
<div class="notes" style="margin-bottom: 24px;">{{ $invoice->notes }}</div>
|
||||
@endif
|
||||
|
||||
<div style="margin-top: 40px;">
|
||||
@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;">
|
||||
<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;">
|
||||
{{ $invoice->signer_name ?: ($invoiceSettings->signer_name ?: ($invoiceSettings->header_name ?: 'Signature')) }}
|
||||
</div>
|
||||
@@ -386,7 +387,7 @@
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
|
||||
<div class="footer">Thank you for the collaboration!</div>
|
||||
<!-- <div class="footer">Thank you for the collaboration!</div> -->
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user