{{ __('Manage currencies') }} @if ($canManage) {{ __('Add bank account') }} @endif {{-- Exchange rates ------------------------------------------------ --}}

{{ __('Exchange rates') }}

{{ __('Units of each currency per 1 :base. Used to re-price a document when you switch its currency.', ['base' => $currencies->firstWhere('is_base', true)?->code ?? __('base currency')]) }}

@if ($canManage) {{ __('Save rates') }} {{ __('Saving…') }} @endif
@forelse ($currencies as $currency) @php $count = ($accountsByCurrency[$currency->code] ?? collect())->where('is_active', true)->count(); @endphp @empty @endforelse
{{ __('Currency') }} {{ __('Symbol') }} {{ __('Rate') }} {{ __('Bank accounts') }}
{{ $currency->code }} {{ $currency->name }} @if ($currency->is_base) {{ __('Base') }} @endif @unless ($currency->is_active) {{ __('Inactive') }} @endunless {{ $currency->symbol }} is_base || ! $canManage) class="w-36 rounded-xl border-slate-300 text-right text-sm tabular-nums shadow-sm focus:border-indigo-500 focus:ring-indigo-500 disabled:bg-slate-50 disabled:text-slate-400" /> @if ($count > 0) {{ trans_choice(':count account|:count accounts', $count, ['count' => $count]) }} @else {{ __('No banking set') }} @if ($canManage) @endif @endif
{{-- Bank accounts, grouped by currency ----------------------------- --}} @foreach ($currencies as $currency) @php $accounts = $accountsByCurrency[$currency->code] ?? collect(); @endphp
{{ $currency->symbol ?: substr($currency->code, 0, 1) }}

{{ __(':code banking', ['code' => $currency->code]) }}

{{ __('Printed on quotes and invoices issued in :code.', ['code' => $currency->code]) }}

@if ($canManage) {{ __('Add account') }} @endif
@forelse ($accounts as $account) @empty @endforelse
{{ __('Bank') }} {{ __('Account name') }} {{ __('Account number') }} {{ __('Treasury account') }} {{ __('Actions') }}
{{ $account->bank_name }} @if ($account->label) {{ $account->label }} @endif {{ $account->account_name ?: '—' }} {{ $account->account_number ?: '—' }} {{ $account->fundAccount?->name ?? '—' }}
@if ($account->is_default) {{ __('Default') }} @endif @unless ($account->is_active) {{ __('Hidden') }} @endunless @if ($canManage) @endif
@endforeach {{-- The old shared blob, kept as a fallback so nothing goes blank --}} @if ($legacyBanking)

{{ __('Shared banking text (fallback)') }}

{{ __('This free-text block still prints on documents whose currency has no bank account defined above. Once every currency you invoice in has its own account, you can clear it under Settings → Documents & Defaults.') }}

{!! \App\Support\Html::display($legacyBanking) !!}
{{ __('Edit shared text') }}
@endif {{-- Add / edit modal ----------------------------------------------- --}} {{ $editingId ? __('Edit bank account') : __('Add bank account') }}

{{ __('Links these printed details to the treasury pot the money lands in. Only accounts holding the same currency are listed.') }}

{{ __('Cancel') }} {{ __('Save') }} {{ __('Saving…') }}