@props([ 'customers' => collect(), 'bankAccounts' => collect(), 'triggerEvent' => 'open-cheque-payment-modal', 'inputId' => 'total_cheques', 'entriesInputId' => 'cheque_payment_entries', ]) @php $customers = $customers instanceof \Illuminate\Support\Collection ? $customers : collect($customers); $bankAccounts = $bankAccounts instanceof \Illuminate\Support\Collection ? $bankAccounts : collect($bankAccounts); @endphp