@php($assist = App\Services\Logic\Assist::class) @php($isShow = ($mode ?? 'create') === 'show') @php($receiptType = (int)($row->receipt_type ?? 1)) @php($isBankVisible = in_array($receiptType, [1, 4, 5])) {{-- 振込, 手形, でんさい --}} @php($isBillDateVisible = in_array($receiptType, [4, 5])) {{-- 手形, でんさい --}} @php($hasMultipleCustomers = $hasMultipleCustomers ?? false) @php($billingCustomers = $billingCustomers ?? []) @php($rowKey = $row->id ?? 'new-'.$index.'-'.uniqid()) {{-- 上段 --}} {{-- hidden fields --}} @if(!$hasMultipleCustomers) @endif {{-- アクション --}} @if(!$isShow) @include('livewire.partials.entry-row-action', [ 'index' => $index, 'disabledDelete' => !$this->isDeletable($index) ]) @endif {{-- No --}} {{ $index + 1 }} {{-- 請求得意先(複数得意先がある場合のみ表示) --}} @if($hasMultipleCustomers) @php($selectedCustomer = collect($billingCustomers)->firstWhere('id', $row->customer_id ?? null)) @if($isShow) @else @endif @endif {{-- 入金区分 --}} @if($isShow) @else @endif {{-- 金額 --}} @if($isShow) @else @endif {{-- 銀行名 --}}
@if($isShow) @else @endif
-
{{-- 支店名 --}}
@if($isShow) @else @endif
-
@if(false) {{-- 消込機能一時非表示 --}} {{-- 消込ステータス --}} @php($matchingStatus = $this->getRowMatchingStatus($index)) @php($isNoMatchingType = in_array($receiptType, [2, 6, 7])) @php($statusDescriptionId = 'matching-status-desc-' . $index)
{{-- ステータスアイコン --}} {{ $matchingStatus['icon'] ?? '⚪' }} {{-- 消込ボタン(消込不要でない場合 & 編集モードのみ) --}} @if(!$isNoMatchingType && !$isShow) @endif {{-- 消込済み金額サマリー --}} @if(($matchingStatus['matchedTotal'] ?? 0) > 0) ({{ num_format($matchingStatus['matchedTotal']) }}) @else 消込金額なし @endif
{{-- hidden field for matchings --}} @endif {{-- 下段 --}} {{-- 手形期日 --}}
@if($isShow) @else @endif
-
{{-- 摘要(colspan=3で拡大表示) --}} @if($isShow) @else @endif