@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())