refactor: improve fetch request handling, update invoice PDF layout, and adjust docker-compose configuration

This commit is contained in:
I-Fun
2026-04-05 16:25:58 +07:00
parent ed9e7dc0fd
commit d6b10f725b
7 changed files with 78 additions and 33 deletions

View File

@@ -90,8 +90,8 @@
<thead>
<tr class="text-xs text-gray-500 uppercase" style="background:{{ $tint }}">
<th class="text-left py-3 px-4 rounded-l-2xl">Description</th>
<th class="text-center py-3 px-4">Qty</th>
<th class="text-right py-3 px-4">Unit Price</th>
<th class="text-center py-3 px-4">Qty</th>
<th class="text-right py-3 px-4 rounded-r-2xl">Total</th>
</tr>
</thead>
@@ -105,9 +105,9 @@
class="ml-1.5 text-xs bg-gray-100 text-gray-500 px-2 py-0.5 rounded-full font-medium">Non-Taxable</span>
@endif
</td>
<td class="py-3 px-4 text-sm text-center text-gray-600">{{ $item->quantity }}</td>
<td class="py-3 px-4 text-sm text-right text-gray-600">Rp
{{ number_format($item->unit_price, 0, ',', '.') }}</td>
<td class="py-3 px-4 text-sm text-center text-gray-600">{{ $item->quantity }}</td>
<td class="py-3 px-4 text-sm text-right font-semibold text-gray-800">Rp
{{ number_format($item->total, 0, ',', '.') }}</td>
</tr>
@@ -137,7 +137,7 @@
{{-- Bank Info --}}
@if($invoice->bank_name)
<div class="rounded-2xl p-4 text-sm" style="background:{{ $tint }}">
<div class="rounded-2xl p-4 text-sm mb-4" style="background:{{ $tint }}">
<div class="font-semibold text-gray-700 mb-2">💳 Payment Info</div>
<div class="text-gray-600">
{{ $invoice->bank_name }}
@@ -147,12 +147,11 @@
</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->notes)
<div class="text-sm text-gray-500 italic mb-8">{{ $invoice->notes }}</div>
@endif
<div class="flex justify-end mt-10">
@if($invoice->signature_image)
<div class="shrink-0 text-center w-full sm:w-auto">
<div class="text-sm text-gray-500 mb-3">