@extends('layouts.customer') @section('title', 'Currency Exchange') @section('content')

Currency Exchange

Live conversion of your account balances based on current exchange rates.

Total Balance ({{ site_currency()['code'] }})

{{ site_money($totalBase) }}

Sum of all your accounts

@foreach($targets as $target)

Equivalent in {{ $target }}

@if($displays[$target] !== null) {{ number_format($displays[$target], 2) }} @else N/A @endif

@if($rates[$target] !== null) 1 {{ site_currency()['code'] }} = {{ number_format($rates[$target], 4) }} {{ $target }} @else Rates temporarily unavailable @endif

@endforeach

Your Accounts

@forelse($accounts as $account)

{{ $account->account_number }}

{{ $account->account_type }}

{{ site_money($account->balance) }}

@empty

No accounts found.

@endforelse

Convert Any Amount

@csrf
@error('amount')

{{ $message }}

@enderror
@endsection