@php($isShow = ($mode ?? 'create') === 'show') @php($hasAllocations = !empty($allocations))
| No | コード | 得意先名 | 請求残高 | 振分金額 |
|---|---|---|---|---|
| {{ $index + 1 }} | {{-- 得意先コード --}}{{ $row['customer_code'] ?? '' }} | {{-- 得意先名 --}}{{ $row['customer_name'] ?? '' }} | {{-- 売掛残高 --}}@if($totalRemaining > 0) {{ num_format($totalRemaining) }} @else - @endif | {{-- 振分金額 --}}
@if($isShow)
|
| 振分合計 | {{ num_format($allocationTotal) }} | |||
| 差額 (入金合計 - 振分合計) | @if($isBalanced) 0 @else {{ num_format($difference) }} @endif | |||