@if($mode=='show')
@endif
@if($mode!='show')
@endif
@if($mode=='show')
@endif
@if($mode!='show')
{{-- 従来モード用: 2段階入力モードではLivewire内のhiddenフィールドが優先される --}}
@endif
@php($allocationCustomerId = old('customer_id', $paymentReceiptHeader->customer_id ?? null))
@php($allocationCount = (in_array($mode, ['edit', 'create']) && !empty($allocationCustomerId)) ? app(\App\Repositories\CustomerRepository::class)->getCustomersByReceiptCustomer($allocationCustomerId)->count() : collect($breakdowns ?? [])->where('receipt_type', 9)->where('amount', '>', 0)->pluck('customer_id')->unique()->count())
@if($mode=='show')
@endif
@if($mode!='show')
@endif