{{--
 }})
--}}
@php
function formatNumber($number) {
// Check if the number has a decimal part
if (floor($number) == $number) {
// If it's a whole number, format without decimals
return number_format($number, 0);
} else {
// If it has a decimal part, format with 2 decimal places
return number_format($number, 2);
}
}
@endphp
|
|
|
| Customer |
: {{ $receivableList->customers->customer_name ?? 'N/A' }} |
No Tanda Terima : {{$receivableList->receivable_list_number}} |
| Kota |
: {{$receivableList->customers->city ?? 'N/A' }} |
|
| Periode |
: {{ \Carbon\Carbon::parse($receivableList->periode)->format('F Y') ?? 'N/A' }} |
|
| Nama |
Tanggal |
No. Faktur |
Nilai Faktur |
@foreach($receivableList->details as $index => $detail)
| {{ $detail->customers->customer_name }} |
{{ \Carbon\Carbon::parse($detail->document_date)->format('d/m/Y') }} |
{{ $detail->document_number }} |
RP. {{ formatNumber($detail->nominal, 0) }} |
@endforeach
| Subtotal Tanda Terima |
Rp. {{ formatNumber($receivableList->total, 2) }} |
| Tambahan: |
|
|
|
| |
|
|
|
| |
|
|
|
| Total Tanda Terima |
|
| Stampel dan Tanda Tangan Customer |