@php($assist = App\Services\Logic\Assist::class) @php($isShow = ($mode ?? 'create') === 'show') @php($hasAllocations = !empty($this->allocations)) @php($difference = $this->getDifference()) @php($isBalanced = $this->isBalanced())
| No | コード | 得意先名 | 売掛残高 | 振分金額 | @if(false) {{-- 消込機能一時非表示 --}}消込 | @endif
|---|---|---|---|---|---|
| {{ $index + 1 }} | {{-- 得意先コード --}}{{ $row['customer_code'] ?? '' }} | {{-- 得意先名 --}}{{ $row['customer_name'] ?? '' }} | {{-- 売掛残高 --}}@if($totalRemaining > 0) {{ num_format($totalRemaining) }} @else - @endif | {{-- 振分金額 --}}
@if($isShow)
|
@if(false) {{-- 消込機能一時非表示 --}}
{{-- 消込ステータス --}}
{{-- ステータスアイコン --}}
{{ $matchingStatus['icon'] ?? '⚪' }}
{{-- 消込ボタン(編集モードのみ & 金額が入力されている場合) --}}
@if(!$isShow && ($row['amount'] ?? 0) > 0)
@endif
{{-- 消込済み金額サマリー --}}
@if(($matchingStatus['matchedTotal'] ?? 0) > 0)
({{ num_format($matchingStatus['matchedTotal']) }})
@endif
{{-- hidden field for matchings --}}
|
@endif
| 振分合計 | {{ num_format($this->allocationTotal) }} | @if(false) {{-- 消込機能一時非表示 --}}@endif | |||
| 差額 (入金合計 - 振分合計) | @if($isBalanced) 0 @else {{ num_format($difference) }} @endif | @if(false) {{-- 消込機能一時非表示 --}}@if(!$isBalanced && !$isShow) 差額が0になるよう振分金額を調整してください @endif | @endif|||