Receipt for: {{ $receipt->invoice->quotation->customer->name }}
| # | 項目描述 | 發票金額 | 已付金額 |
|---|---|---|---|
| {{ $index + 1 }} | {{ $item->description }} | ${{ number_format($item->price, 2) }} | {{ $index === 0 ? '$' . number_format($receipt->amount, 2) : '' }} |
| 本次收款總額 | ${{ number_format($receipt->amount, 2) }} | ||
報價單總額:${{ number_format($receipt->invoice->quotation->total_price, 2) }}
@php $totalPaid = $receipt->invoice->quotation->invoices->where('payment_status', 'paid')->sum('paid_amount'); $remaining = $receipt->invoice->quotation->total_price - $totalPaid; @endphp已付總額:${{ number_format($totalPaid, 2) }}
餘額:${{ number_format($remaining, 2) }}
確認及簽收:
日期:______________________