@props(['currency' => null]) {{-- Tells the person filling in the form what banking this document would carry, at the moment they pick the currency, rather than letting them find out from a customer who could not pay. Silent while no currency is chosen. Phrased as a condition, not a promise: the currency decides WHICH accounts could print, the payment method decides WHETHER any of them do. The line under the method picker answers the second half. --}} @php $teamId = auth()->user()?->currentTeam?->id; $accounts = $teamId && $currency ? \App\Models\BankAccount::forCurrency($teamId, $currency) : collect(); @endphp @if ($currency) @if ($accounts->isNotEmpty())

{{ __('On a bank transfer, shows :banks banking.', ['banks' => $accounts->map->displayName()->join(', ', ' and ')]) }}

@else

{{ __('No :code bank account set up, a bank transfer on this document would fall back to the shared banking text.', ['code' => $currency]) }} {{ __('Add one') }}

@endif @endif