{{-- The banking block shared by the invoice and quote PDFs. Prints the accounts defined for THIS document's currency only, so a customer paying a ZAR invoice is never shown a USD account. Falls back to the older shared free-text block when the currency has no accounts of its own, which keeps documents working for teams that have not filled the new settings in. Payment methods are deliberately NOT listed here. The printed document carries the bank details and the one online payment link, nothing else; the portal is where the full list of channels belongs. Expects: $accounts (Collection), $setting, $currencyCode, $reference (what to quote when paying). --}} @if ($accounts->isNotEmpty())

{{ __('Banking Details') }} ({{ $currencyCode }})

@foreach ($accounts as $account) @foreach ($account->printableRows() as $row) @endforeach
{{ $row['label'] }} {{ $row['value'] }}
{{ __('Currency') }} {{ $account->currency_code }}
@if ($account->notes)

{{ $account->notes }}

@endif @endforeach

{{ __('Please include the :reference as a reference when making payment.', ['reference' => $reference]) }}

@elseif ($setting?->banking_details)

{{ __('Banking Details') }}

{!! \App\Support\Html::display($setting->banking_details) !!}

{{ __('Please include the :reference as a reference when making payment.', ['reference' => $reference]) }}

@endif